pk910 / PoWFaucet

Modularized faucet for EVM chains with different protection methods (Captcha, Mining, IP, Mainnet Balance, Gitcoin Passport and more)
GNU Affero General Public License v3.0
3.96k stars 1.5k forks source link

Polygon zkEVM: Cardona #274

Closed Leooehh closed 4 weeks ago

Leooehh commented 1 month ago

Hey!!

I'm trying to set up a faucet on the Polygon zkEVM: Cardona network, but I'm running into an issue where the transaction fails with an "invalid sender" error. I've tried using different RPCs, but the problem persists.

Before diving deeper, I wanted to ask: is it currently possible to distribute tokens on the Polygon zkEVM: Cardona network using the same setup?

image image

Thank you very much in-advance !

pk910 commented 4 weeks ago

Heya @Leooehh

That's an interesting issue you've found there :D I'm nor sure if the faucet works with the polygon network out of the box.

Can you try switching back to legacy transactions?

# use legacy (non-eip1559) transaction type
# true: Type 0 (Legacy Transactions), false: Type 2 (EIP1559 Transactions)
ethLegacyTx: true

If that still doesn't work, there are probably some code changes needed.

I had similar problems getting the faucet running for a zkSync testnet earlier, so I ended up running a fork with their sdk to build transactions :/

Leooehh commented 4 weeks ago

Thanks for the tip @pk910 !

I switched it to legacy transactions as you suggested, and it worked like a charm.

Also big thanks for this project, it’s been super fun to operate!