From 61f8257c4cede6ffa3ab9275cdc9918a60fc8e22 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Mon, 19 Sep 2022 17:07:21 +0200 Subject: [PATCH] fix: estimateGas full signature syntax --- packages/investor-foxy/src/api/api.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/investor-foxy/src/api/api.ts b/packages/investor-foxy/src/api/api.ts index d78e3da72..9f4c92ab2 100644 --- a/packages/investor-foxy/src/api/api.ts +++ b/packages/investor-foxy/src/api/api.ts @@ -321,7 +321,10 @@ export class FoxyApi { try { const estimatedGas = isDelayed - ? await stakingContract.estimateGas.unstake(this.normalizeAmount(amountDesired), true) + ? await stakingContract.estimateGas['unstake(uint256,bool)']( + this.normalizeAmount(amountDesired), + true, + ) : await stakingContract.estimateGas.instantUnstake(true) return estimatedGas.toString() } catch (e) { @@ -354,7 +357,7 @@ export class FoxyApi { const stakingContract = this.getStakingContract(contractAddress) try { - const estimatedGas = await stakingContract.estimateGas.stake( + const estimatedGas = await stakingContract.estimateGas['stake(uint256)']( this.normalizeAmount(amountDesired), userAddress, )