Skip to content

Commit 5dd7670

Browse files
committed
accounts/abi: brings out the msg defined at require statement in SC function (ethereum#17328)
1 parent 851b07c commit 5dd7670

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
@@ -85,7 +85,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
8585
// we need to decide whether we're calling a method or an event
8686
if method, ok := abi.Methods[name]; ok {
8787
if len(output)%32 != 0 {
88-
return errors.New("abi: improperly formatted output")
88+
return fmt.Errorf("abi: improperly formatted output: %s - Bytes: [%+v]", string(output), output)
8989
}
9090
return method.Outputs.Unpack(v, output)
9191
} else if event, ok := abi.Events[name]; ok {

0 commit comments

Comments
 (0)