Skip to content

Commit

Permalink
update MarshalJSON check
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Jan 24, 2025
1 parent e4fcd0d commit dd173d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/state/contract_invocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (ci *ContractInvocation) EncodeBinaryWithContext(w *io.BinWriter, sc *stack
// MarshalJSON implements the json.Marshaler interface.
func (ci ContractInvocation) MarshalJSON() ([]byte, error) {
var item []byte
if ci.argumentsBytes != nil {
if ci.Arguments == nil && ci.argumentsBytes != nil {
si, err := stackitem.Deserialize(ci.argumentsBytes)
if err != nil {
return nil, err
Expand Down

0 comments on commit dd173d8

Please sign in to comment.