From 0ebf21e550cbb7f94e0e868562437292b92cbfc4 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 9 Oct 2023 09:39:32 +0800 Subject: [PATCH] update doc --- relayer/chains/cosmos/tx.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/relayer/chains/cosmos/tx.go b/relayer/chains/cosmos/tx.go index ce2e6af25..f243ec1ef 100644 --- a/relayer/chains/cosmos/tx.go +++ b/relayer/chains/cosmos/tx.go @@ -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