Skip to content

Commit 1c6454e

Browse files
author
Beau Shinkle
authored
Merge pull request #78 from keep-network/log-msg-fix
Added missing space in the transaction submission message
2 parents 63e27dd + 95486cf commit 1c6454e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tools/generators/ethlike/contract_non_const_methods.go.tmpl

Lines changed: 6 additions & 6 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

@@ -68,8 +68,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
6868
}
6969

7070
{{$logger}}.Infof(
71-
"submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]",
72-
transaction.Hash().Hex(),
71+
"submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]",
72+
transaction.Hash(),
7373
transaction.Nonce(),
7474
)
7575

@@ -101,8 +101,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
101101
}
102102

103103
{{$logger}}.Infof(
104-
"submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]",
105-
transaction.Hash().Hex(),
104+
"submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]",
105+
transaction.Hash(),
106106
transaction.Nonce(),
107107
)
108108

tools/generators/ethlike/contract_non_const_methods_template_content.go

Lines changed: 6 additions & 6 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
@@ -71,8 +71,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
7171
}
7272
7373
{{$logger}}.Infof(
74-
"submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]",
75-
transaction.Hash().Hex(),
74+
"submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]",
75+
transaction.Hash(),
7676
transaction.Nonce(),
7777
)
7878
@@ -104,8 +104,8 @@ func ({{$contract.ShortVar}} *{{$contract.Class}}) {{$method.CapsName}}(
104104
}
105105
106106
{{$logger}}.Infof(
107-
"submitted transaction {{$method.LowerName}} with id: [%v] and nonce [%v]",
108-
transaction.Hash().Hex(),
107+
"submitted transaction {{$method.LowerName}} with id: [%s] and nonce [%v]",
108+
transaction.Hash(),
109109
transaction.Nonce(),
110110
)
111111

0 commit comments

Comments
 (0)