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

This commit is contained in:
Hsien-Tang Kao 2019-02-19 00:34:55 -08:00 committed by Péter Szilágyi
parent 9c7e65c435
commit 4a090a1bab
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {