diff --git a/tools/generators/ethlike/contract_non_const_methods.go.tmpl b/tools/generators/ethlike/contract_non_const_methods.go.tmpl index 508b778..1d2473b 100644 --- a/tools/generators/ethlike/contract_non_const_methods.go.tmpl +++ b/tools/generators/ethlike/contract_non_const_methods.go.tmpl @@ -13,13 +13,13 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( {{$logger}}.Debug( "submitting transaction {{$method.LowerName}}", {{if $method.Params -}} - "params: ", + " params: ", fmt.Sprint( {{$method.Params}} ), {{end -}} {{if $method.Payable -}} - "value: ", value, + " value: ", value, {{- end}} ) @@ -68,8 +68,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( } {{$logger}}.Infof( - "submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]", - transaction.Hash().Hex(), + "submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]", + transaction.Hash(), transaction.Nonce(), ) @@ -101,8 +101,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( } {{$logger}}.Infof( - "submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]", - transaction.Hash().Hex(), + "submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]", + transaction.Hash(), transaction.Nonce(), ) diff --git a/tools/generators/ethlike/contract_non_const_methods_template_content.go b/tools/generators/ethlike/contract_non_const_methods_template_content.go index 7d4ecb3..c708dcb 100644 --- a/tools/generators/ethlike/contract_non_const_methods_template_content.go +++ b/tools/generators/ethlike/contract_non_const_methods_template_content.go @@ -16,13 +16,13 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( {{$logger}}.Debug( "submitting transaction {{$method.LowerName}}", {{if $method.Params -}} - "params: ", + " params: ", fmt.Sprint( {{$method.Params}} ), {{end -}} {{if $method.Payable -}} - "value: ", value, + " value: ", value, {{- end}} ) @@ -71,8 +71,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( } {{$logger}}.Infof( - "submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]", - transaction.Hash().Hex(), + "submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]", + transaction.Hash(), transaction.Nonce(), ) @@ -104,8 +104,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}( } {{$logger}}.Infof( - "submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]", - transaction.Hash().Hex(), + "submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]", + transaction.Hash(), transaction.Nonce(), )