Skip to content

Commit 335760b

Browse files
jeffprestesgballet
authored andcommitted
accounts/abi: Brings out the msg defined at require statement in SC function (#17328)
1 parent 7df52e3 commit 335760b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/abi/abi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
8282
// we need to decide whether we're calling a method or an event
8383
if method, ok := abi.Methods[name]; ok {
8484
if len(output)%32 != 0 {
85-
return fmt.Errorf("abi: improperly formatted output")
85+
return fmt.Errorf("abi: improperly formatted output: %s - Bytes: [%+v]", string(output), output)
8686
}
8787
return method.Outputs.Unpack(v, output)
8888
} else if event, ok := abi.Events[name]; ok {

0 commit comments

Comments
 (0)