← Code LabReact Native0/50 solved · 0%
Web3 integration · hard

44. Gas estimation buffering

Add a safety buffer to an estimated gas limit using BigInt.

Write `estimateWithBuffer(estimatedGas, bufferPercent)` where `estimatedGas` is a BigInt and `bufferPercent` a number, returning `estimatedGas` increased by that percentage (integer BigInt math).
Required in your answer: BigInt(