Revert "accounts/abi: Brings out the msg defined at require statement in SC function (#17328)"

This reverts commit 335760bf06.
This commit is contained in:
Santesprogtx 2018-12-23 04:50:51 +04:00 committed by GitHub
parent 335760bf06
commit 7f604ceaf2

View file

@ -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: %s - Bytes: [%+v]", string(output), output)
return fmt.Errorf("abi: improperly formatted output")
}
return method.Outputs.Unpack(v, output)
} else if event, ok := abi.Events[name]; ok {