package jsonutil
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestMergeJSON(t *testing.T) {
type testStruct struct {
A string `json:"a"`
B int `json:"b"`
C bool `json:"c"`
}
out, err := MergeJSON(
testStruct{
"hello",
42,
true,
},
map[string]any{
"a": "world",
"c": false,
},
map[string]any{
"d": "shouldn't show up",
},
)
require.NoError(t, err)
require.EqualValues(t, out, testStruct{
"world",
42,
false,
})
}
-
Matthew Slipper authored
* op-deployer: Support overriding proof parameters This PR adds support for overiding proofs params using the `GlobalDeployOverrides` and `DeployOverrides` fields. Previously, these values were hardcoded. To prevent a recursive import, I refactored the `standard.go` file into a standalone package. Closes https://github.com/ethereum-optimism/optimism/issues/12711. * import cycle * add tests, ability to disable post-checks * rename to dangerously * op-deployer: Add support for deploying interop chains * code review updates
a68e3ef4