diff --git a/pkg/smartcontract/context/item_test.go b/pkg/smartcontract/context/item_test.go index 84ee8e540..38ee430f0 100644 --- a/pkg/smartcontract/context/item_test.go +++ b/pkg/smartcontract/context/item_test.go @@ -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)) }