good morning!!!!

Skip to content
Snippets Groups Projects
Commit 4a090a1b authored by Hsien-Tang Kao's avatar Hsien-Tang Kao Committed by Péter Szilágyi
Browse files

accounts/abi: fix error message format (#19122)

parent 9c7e65c4
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ func (abi *ABI) UnmarshalJSON(data []byte) error {
// returns nil if none found
func (abi *ABI) MethodById(sigdata []byte) (*Method, error) {
if len(sigdata) < 4 {
return nil, fmt.Errorf("data too short (% bytes) for abi method lookup", len(sigdata))
return nil, fmt.Errorf("data too short (%d bytes) for abi method lookup", len(sigdata))
}
for _, method := range abi.Methods {
if bytes.Equal(method.Id(), sigdata[:4]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment