Update abi.go

This commit is contained in:
Avory 2025-11-14 09:37:12 +02:00 committed by GitHub
parent 488d987fc4
commit 238210c132
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,7 @@ func parseCallData(calldata []byte, unescapedAbidata string) (*decodedCallData,
if !bytes.Equal(encoded, argdata) {
was := common.Bytes2Hex(encoded)
exp := common.Bytes2Hex(argdata)
return nil, fmt.Errorf("WARNING: Supplied data is stuffed with extra data. \nWant %s\nHave %s\nfor method %v", exp, was, method.Sig)
return nil, fmt.Errorf("WARNING: Supplied data is stuffed with extra data. \nWant %s\nHave %s\nfor method %v", was, exp, method.Sig)
}
return &decoded, nil
}