Skip to content

Commit

Permalink
fix(go/client): apply gas adjustment option in Broadcast call if set (#…
Browse files Browse the repository at this point in the history
…153)

Signed-off-by: Artur Troian <troian.ap@gmail.com>
  • Loading branch information
troian authored Apr 20, 2024
1 parent 4f4bfba commit 23f791b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/node/client/v1beta2/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ func deriveTxfFromOptions(txf tx.Factory, opts *BroadcastOptions) tx.Factory {
txf = txf.WithTimeoutHeight(*opt)
}

if opt := opts.gasAdjustment; opt != nil {
txf = txf.WithGasAdjustment(*opt)
}

return txf
}

Expand Down

0 comments on commit 23f791b

Please sign in to comment.