You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async prepareRequestWithdraw({
tokenOut,
shareAmount,
}: {
tokenOut: Address;
shareAmount: bigint;
}) {
if (!this.vault.withdrawals) {
throw new Error('Withdrawals not supported for this vault');
}
try {
const { request, result } = await simulateContract(this.config, {
abi: WithdrawalsAbi,
address: this.vault.withdrawals.address,
functionName: 'redeemRequest',
args: [tokenOut, shareAmount] as const,
});
return { request, result };
} catch (error) {
console.error(error);
throw error;
}
}
And same in the class it extends from
async prepareRequestWithdraw({
tokenOut: _tokenOut,
shareAmount: _shareAmount,
}: {
tokenOut: Address;
shareAmount: bigint;
}): Promise<SimulateContractReturnType> {
// This should be overridden by specific adapters
throw new Error('requestWithdraw not implemented for this vault type');
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I have a function in class
And same in the class it extends from
My Abi has overloads of same function
For the code present, we get this error:
How can I resolve this?
Beta Was this translation helpful? Give feedback.
All reactions