Skip to content

Commit

Permalink
fix gas
Browse files Browse the repository at this point in the history
  • Loading branch information
0g-wh committed Nov 13, 2024
1 parent 924872b commit 49784c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generator/generator_uniswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (g *Generator) GenerateUniswap() (map[int]types.Transactions, error) {
)
ethCallTx := ConvertLegacyTxToCallMsg(tx, sender.Address)
estimateGas, err := g.estimateGas(ethCallTx)
estimateGas = (uint64)(1.1 * float64(estimateGas))
if err != nil {
return txsMap, err
}
Expand Down

0 comments on commit 49784c6

Please sign in to comment.