Skip to content

Commit

Permalink
Merge pull request #3414 from nspcc-dev/test-empty-script
Browse files Browse the repository at this point in the history
smartcontract: ensure nil ParameterContext Item's script is marshallable
  • Loading branch information
roman-khimov authored Apr 19, 2024
2 parents c84adf8 + 4b9024f commit 678c198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/smartcontract/context/item_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit 678c198

Please sign in to comment.