fix eth_estimateGas

pull/5370/head
yann300 3 years ago
parent 8fc1ac695d
commit 0881f0a81e
  1. 5
      libs/remix-simulator/src/methods/transactions.ts

@ -145,7 +145,10 @@ export class Transactions {
return cb(e.message)
}
}
const gasUsed = result.result.execResult.gasUsed.toNumber()
let gasUsed = result.result.execResult.gasUsed.toNumber()
if (result.result.execResult.gasRefund) {
gasUsed += result.result.execResult.gasRefund.toNumber()
}
cb(null, Math.ceil(gasUsed + (15 * gasUsed) / 100))
})
}

Loading…
Cancel
Save