Skip to content

Commit

Permalink
Merge pull request #78 from keep-network/log-msg-fix
Browse files Browse the repository at this point in the history
Added missing space in the transaction submission message
  • Loading branch information
Beau Shinkle committed Jun 1, 2021
2 parents 63e27dd + 95486cf commit 1c6454e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions tools/generators/ethlike/contract_non_const_methods.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
)

Expand Down Expand Up @@ -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(),
)

Expand Down Expand Up @@ -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(),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
)
Expand Down Expand Up @@ -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(),
)
Expand Down Expand Up @@ -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(),
)
Expand Down

0 comments on commit 1c6454e

Please sign in to comment.