Skip to content

Commit

Permalink
Merge pull request #1660 from oasisprotocol/kostko/fix/tx-prettyprint…
Browse files Browse the repository at this point in the history
…-fee-denom
  • Loading branch information
kostko authored Mar 7, 2024
2 parents a1d90c7 + 2d9b15e commit d29abe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-sdk/go/types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func (f *Fee) PrettyPrint(ctx context.Context, prefix string, w io.Writer) {

fmt.Fprintf(w, "%sGas limit: %d\n", prefix, f.Gas)
fmt.Fprintf(w, "%s(gas price: ", prefix)
gp := NewBaseUnits(*f.GasPrice(), NativeDenomination)
gp := NewBaseUnits(*f.GasPrice(), f.Amount.Denomination)
gp.PrettyPrint(ctx, prefix, w)
fmt.Fprintln(w, " per gas unit)")
}
Expand Down

0 comments on commit d29abe9

Please sign in to comment.