Estimate gas in ETH from an approve contract

Viewed 454

I woudlike to estimateGas after an approve contract :

WETH = weth.address;
USDC = usdc.address;

await usdc.approve(addr1, addr2).estimateGas;

When I try this I have this error :

TypeError: usdt.approve(...).estimateGas is not a function
1 Answers
Related