Details
For some specific relayed transactions (0x swaps through a gasless contract of my own), I'm getting some 400 errors from the relayer, that I can't explain, with this status message: Transaction rejected by aggregator: gas required exceeds allowance (1613783)
To make this clear, I've increased A LOT the gas limit as I need some kind of gas buffer over the 0x swap quote. Usually 400k gwei is more than enough on Polygon.
For Arbitrum, I tried multiples values (600k, 800k, 1M and even 1.5M like the above error message).
I'm using exactly the same code for both Polygon & Arbitrum. It works fine on Polygon but doesn't on Arbitrum and I really can't understand why.
Also for completeness, I am able to relay other kind of transactions without much issues.
Code to reproduce
Not easy to give something reproduceable.
My relayer ID is c776956b-cfb3-4a2b-b2e4-4377bd8b2bea if that helps.
gasPriceCap is different between Polygon & Arb, on purpose.
Arb is usually at 0.1 Gwei. I've given a ten times markup here.
Wrt to the different addresses for one of the contracts between Polygon and Arb relayers, the setup is fine. Same contract code, just different addresses on each network.
So I'm still intrigued by those gas required exceeds allowance error and how to get more details about them.