aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'accounts')
-rw-r--r--accounts/abi/method.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index f434ffdbe..583105765 100644
--- a/accounts/abi/method.go
+++ b/accounts/abi/method.go
@@ -47,10 +47,8 @@ type Method struct {
// Please note that "int" is substitute for its canonical representation "int256"
func (method Method) Sig() string {
types := make([]string, len(method.Inputs))
- i := 0
- for _, input := range method.Inputs {
+ for i, input := range method.Inputs {
types[i] = input.Type.String()
- i++
}
return fmt.Sprintf("%v(%v)", method.Name, strings.Join(types, ","))
}