forked from TrueCloudLab/neoneo-go
Merge pull request #3414 from nspcc-dev/test-empty-script
smartcontract: ensure nil ParameterContext Item's script is marshallable
This commit is contained in:
commit
678c1982f9
1 changed files with 4 additions and 0 deletions
|
@ -51,4 +51,8 @@ func TestContextItem_MarshalJSON(t *testing.T) {
|
|||
}
|
||||
|
||||
testserdes.MarshalUnmarshalJSON(t, expected, new(Item))
|
||||
|
||||
// Empty script.
|
||||
expected.Script = nil
|
||||
testserdes.MarshalUnmarshalJSON(t, expected, new(Item))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue