diff options
author | Jeff Prestes <jeffprestes@gmail.com> | 2018-12-22 18:39:08 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2018-12-22 18:39:08 +0800 |
commit | 335760bf0674ee553f3ca65afd6f29b6557d1b55 (patch) | |
tree | fd6d04240dbd8e8b86991eaf57a209509a558570 | |
parent | 7df52e324c1393f9dad3daa8c724782f4ade5b42 (diff) | |
download | dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar.gz dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar.bz2 dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar.lz dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar.xz dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.tar.zst dexon-335760bf0674ee553f3ca65afd6f29b6557d1b55.zip |
accounts/abi: Brings out the msg defined at require statement in SC function (#17328)
-rw-r--r-- | accounts/abi/abi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go index 535e5d78b..4d29814b2 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -82,7 +82,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) { // we need to decide whether we're calling a method or an event if method, ok := abi.Methods[name]; ok { if len(output)%32 != 0 { - return fmt.Errorf("abi: improperly formatted output") + return fmt.Errorf("abi: improperly formatted output: %s - Bytes: [%+v]", string(output), output) } return method.Outputs.Unpack(v, output) } else if event, ok := abi.Events[name]; ok { |