Hello, I’m having trouble executing function calls with GSN.
I’ve deployed my GSNRecipient contract on Ropsten via Truffle, called initialize(), and funded the RelayHub for my contract. I’m using GSNProvider with web3 in my frontend to send transactions via MetaMask. When I attempt to send a transaction, I receive the following error:
Error estimating gas usage for transaction (gas required exceeds allowance (8000029) or always failing transaction). Make sure the transaction is valid, or set a fixed gas value.
If I specify the amount of gas to use in the web3 send function (less than 8000000), I will be able to sign the transaction through MetaMask. However, immediately after, this error will be thrown:
No relayer responded or accepted the transaction out of the 1 queried:
Error sending transaction via relayer 0x29749bca81c36835d6a49710a14aebc654bd3ec5: Unacceptable RelayMaxNonce
I’m not sure what this means. I’m unsure why the transaction would require so much gas in the first place, as my function call is simply changing the value of a mapping and should not be computationally expensive.
I’m fairly new to this space, so if anyone can provide some insight I’d appreciate it. Thanks!