Metamask rpc error: execution reverted

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.main

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.