fix gasEstimation

pull/3262/head^2
yann300 2 years ago committed by Aniket
parent 588e6ca7de
commit 390b7f4751
  1. 3
      libs/remix-simulator/src/methods/transactions.ts

@ -172,7 +172,8 @@ export class Transactions {
if (result.execResult.gasRefund) {
gasUsed += result.execResult.gasRefund
}
cb(null, Math.ceil(Number(gasUsed) + (15 * Number(gasUsed)) / 100) + Number(value.tx.getBaseFee()))
gasUsed = gasUsed + value.tx.getBaseFee()
cb(null, Math.ceil(Number(gasUsed) + (15 * Number(gasUsed)) / 100))
})
}

Loading…
Cancel
Save