Skip to content

Commit

Permalink
abi: Format data as hex-string instead of string(data)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac committed Nov 5, 2022
1 parent 6d55908 commit 1ed66b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (abi ABI) getArguments(name string, data []byte) (Arguments, error) {
var args Arguments
if method, ok := abi.Methods[name]; ok {
if len(data)%32 != 0 {
return nil, fmt.Errorf("abi: improperly formatted output: %s - Bytes: [%+v]", string(data), data)
return nil, fmt.Errorf("abi: improperly formatted output: %x", data)
}
args = method.Outputs
}
Expand Down

0 comments on commit 1ed66b1

Please sign in to comment.