|
|
@ -98,7 +98,7 @@ func parseCallData(calldata []byte, unescapedAbidata string) (*decodedCallData, |
|
|
|
if len(argdata)%32 != 0 { |
|
|
|
if len(argdata)%32 != 0 { |
|
|
|
return nil, fmt.Errorf("invalid call data; length should be a multiple of 32 bytes (was %d)", len(argdata)) |
|
|
|
return nil, fmt.Errorf("invalid call data; length should be a multiple of 32 bytes (was %d)", len(argdata)) |
|
|
|
} |
|
|
|
} |
|
|
|
// Validate the called method and upack the call data accordingly
|
|
|
|
// Validate the called method and unpack the call data accordingly
|
|
|
|
abispec, err := abi.JSON(strings.NewReader(unescapedAbidata)) |
|
|
|
abispec, err := abi.JSON(strings.NewReader(unescapedAbidata)) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
return nil, fmt.Errorf("invalid method signature (%q): %v", unescapedAbidata, err) |
|
|
|
return nil, fmt.Errorf("invalid method signature (%q): %v", unescapedAbidata, err) |
|
|
|