diff --git a/src/chain/ERC20Reactor.ts b/src/chain/ERC20Reactor.ts index fa4aea5..e20645a 100644 --- a/src/chain/ERC20Reactor.ts +++ b/src/chain/ERC20Reactor.ts @@ -148,8 +148,8 @@ export class ERC20Reactor { } let gasEstimate = from === this.account.address - ? await contract.methods.transfer(to, 0).estimateGas() - : await contract.methods.transferFrom(from, to, 0).estimateGas() + ? await contract.methods.transfer(to, amountBN).estimateGas() + : await contract.methods.transferFrom(from, to, amountBN).estimateGas() if (estimate) { return gasEstimate }