Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 9, 2023
1 parent 0060c8d commit 0ebf21e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions relayer/chains/cosmos/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1673,9 +1673,8 @@ func (cc *CosmosProvider) PrepareFactory(txf tx.Factory, signingKey string) (tx.
}

// AdjustEstimatedGas adjusts the estimated gas usage by multiplying it by the gas adjustment factor
// and bounding the result by the maximum gas amount option. If the gas usage is zero, the adjusted gas
// is also zero. If the gas adjustment factor produces an infinite result, an error is returned.
// max-gas-amount is enforced.
// and return estimated gas is higher than max gas error. If the gas usage is zero, the adjusted gas
// is also zero.
func (cc *CosmosProvider) AdjustEstimatedGas(gasUsed uint64) (uint64, error) {
if gasUsed == 0 {
return gasUsed, nil
Expand Down

0 comments on commit 0ebf21e

Please sign in to comment.