You get that error before making the transaction and you end up not making the transaction or you also made the transaction on chain?
I get it before making the transaction
What would be different on ethereum network?
I wished I knew, please what could be different?
With all this, I still havenât gotten any solution to whatâs is causing thisâŚ
Why can I sign contra t calls on smart chain, polygon matic and other networks more times, but canât sign contract calls more times on ethereum network?.. please help, please
What contract functions are you calling on each chain and which contracts on each chain? Or is it the same function and same code?
Thanks for replying, Usdt approve functionâŚ
Yea, same function same code
So the same USDT contract (more or less) on each of those chains? Try using another RPC URL for Ethereum in your wallet.
Please I donât understand?
You can change the RPC or network URL for a chain (Ethereum) in your MetaMask network settings.
Iâm trying it now, thanks
Itâs still not sending any contract call
What is the Ethereum contract address youâre using? And what is your approve code?
const { runContractFunction: approve, data: enterTxResponse, error, isLoading, isFetching } = useWeb3Contract({
// chain: "eth",
contractAddress: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
abi: ABI,
functionName: "approve",
params: {
_spender: "0xc....",
_value: 1,
},
}
);
contractAdrress:â0xdAC17F958D2ee523a2206206994597C13D831ec7â
USDT contract is what iâm using
That looks fine as long as youâre using the USDT ABI, can you log the error from the useWeb3Contract hook to try and see whatâs going on when you call approve.
useEffect(() => {
console.log("error", error);
}, [error]);
so sorry on my late reply⌠please here is the error message.
So this error happens and your MetaMask doesnât get the transaction to sign? If so you may need to use ethers.js directly to set gas. You can try testing with another wallet.
Thanks for replying, please can you direct me on how to use ether.js to set the gas?
There is an example here. The approve transaction on that Ethereum contract goes to my MetaMask fine, I just donât have enough ETH to pay for it. You can test with another wallet as well.