diff options
author | tzapu <alex@tzapu.com> | 2018-12-13 22:12:19 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2018-12-13 22:12:19 +0800 |
commit | e79821cabeda5c6907f03073d11fe6d83367f494 (patch) | |
tree | 7b110c169ba6d55f435b9e555d7447e72537b732 /accounts/abi/event.go | |
parent | e57e4571d3382c504a01f87be654d984f26e2dd1 (diff) | |
download | go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar.gz go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar.bz2 go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar.lz go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar.xz go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.tar.zst go-tangerine-e79821cabeda5c6907f03073d11fe6d83367f494.zip |
accounts/abi: argument type and name were reversed (#17947)
argument type and name were reversed
Diffstat (limited to 'accounts/abi/event.go')
-rw-r--r-- | accounts/abi/event.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/abi/event.go b/accounts/abi/event.go index a3f6be973..9392c1990 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -36,12 +36,12 @@ type Event struct { func (e Event) String() string { inputs := make([]string, len(e.Inputs)) for i, input := range e.Inputs { - inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type) + inputs[i] = fmt.Sprintf("%v %v", input.Type, input.Name) if input.Indexed { - inputs[i] = fmt.Sprintf("%v indexed %v", input.Name, input.Type) + inputs[i] = fmt.Sprintf("%v indexed %v", input.Type, input.Name) } } - return fmt.Sprintf("e %v(%v)", e.Name, strings.Join(inputs, ", ")) + return fmt.Sprintf("event %v(%v)", e.Name, strings.Join(inputs, ", ")) } // Id returns the canonical representation of the event's signature used by the |