update gasUsed

auto_exec_v2
yann300 3 years ago
parent 5141669dbb
commit 84378f896e
  1. 3
      libs/remix-simulator/src/methods/transactions.ts

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

Loading…
Cancel
Save