Skip to content

Commit 0d4f5d5

Browse files
committed
Added missing space in the transaction submission message
Logged message didn't contain a space between method name and params. We added a space. Sample message that was logged: 2021-06-01T16:03:57.284+0200 DEBUG keep-contract-BondedECDSAKeep submitting transaction submitPublicKeyparams: [49 219 244 160 164 177 151 147 225 55 231 231 13 50 114 78 174 57 148 142 172 39 121 149 129 195 214 68 39 231 163 221 134 243 60 24 160 47 117 146 221 39 240 12 61 223 158 199 217 56 123 186 74 106 19 207 204 16 203 241 234 62 64 254]
1 parent 63e27dd commit 0d4f5d5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/generators/ethlike/contract_non_const_methods.go.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
1313
{{$logger}}.Debug(
1414
"submitting transaction {{$method.LowerName}}",
1515
{{if $method.Params -}}
16-
"params: ",
16+
" params: ",
1717
fmt.Sprint(
1818
{{$method.Params}}
1919
),
2020
{{end -}}
2121
{{if $method.Payable -}}
22-
"value: ", value,
22+
" value: ", value,
2323
{{- end}}
2424
)
2525

tools/generators/ethlike/contract_non_const_methods_template_content.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
1616
{{$logger}}.Debug(
1717
"submitting transaction {{$method.LowerName}}",
1818
{{if $method.Params -}}
19-
"params: ",
19+
" params: ",
2020
fmt.Sprint(
2121
{{$method.Params}}
2222
),
2323
{{end -}}
2424
{{if $method.Payable -}}
25-
"value: ", value,
25+
" value: ", value,
2626
{{- end}}
2727
)
2828

0 commit comments

Comments
 (0)