From e79821cabeda5c6907f03073d11fe6d83367f494 Mon Sep 17 00:00:00 2001 From: tzapu Date: Thu, 13 Dec 2018 16:12:19 +0200 Subject: accounts/abi: argument type and name were reversed (#17947) argument type and name were reversed --- accounts/abi/method.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'accounts/abi/method.go') diff --git a/accounts/abi/method.go b/accounts/abi/method.go index 583105765..2d8d3d658 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -56,14 +56,14 @@ func (method Method) Sig() string { func (method Method) String() string { inputs := make([]string, len(method.Inputs)) for i, input := range method.Inputs { - inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type) + inputs[i] = fmt.Sprintf("%v %v", input.Type, input.Name) } outputs := make([]string, len(method.Outputs)) for i, output := range method.Outputs { + outputs[i] = output.Type.String() if len(output.Name) > 0 { - outputs[i] = fmt.Sprintf("%v ", output.Name) + outputs[i] += fmt.Sprintf(" %v", output.Name) } - outputs[i] += output.Type.String() } constant := "" if method.Const { -- cgit