Merge pull request #3414 from nspcc-dev/test-empty-script

smartcontract: ensure nil ParameterContext Item's script is marshallable
This commit is contained in:
Roman Khimov 2024-04-19 16:49:52 +03:00 committed by GitHub
commit 678c1982f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))
}