aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/argument.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/abi/argument.go')
-rw-r--r--accounts/abi/argument.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/accounts/abi/argument.go b/accounts/abi/argument.go
index 4691318ce..cd856061e 100644
--- a/accounts/abi/argument.go
+++ b/accounts/abi/argument.go
@@ -49,3 +49,13 @@ func (a *Argument) UnmarshalJSON(data []byte) error {
return nil
}
+
+func countNonIndexedArguments(args []Argument) int {
+ out := 0
+ for i := range args {
+ if !args[i].Indexed {
+ out++
+ }
+ }
+ return out
+}