Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many errors in 25-defender-metatx-api #42

Open
SKYBITDev3 opened this issue Mar 7, 2024 · 2 comments
Open

Many errors in 25-defender-metatx-api #42

SKYBITDev3 opened this issue Mar 7, 2024 · 2 comments

Comments

@SKYBITDev3
Copy link

SKYBITDev3 commented Mar 7, 2024

I've just tried the meta-transactions demo but found many errors when just following the instructions. It seems that it was published without checking that it works beforehand, which is bad practise.

Please fix all errors so that it actually runs.

e.g.:

Replace forwarder.verify(request, signature) with forwarder.verify(forwardRequestData) where forwardRequestData corresponds with ForwardRequestData.

Add deadline to the request.

Should EIP712Domain have salt?

Replace API_KEY with RELAYER_API_KEY and API_SECRET with RELAYER_API_SECRET in various files.

Replace apiKey with relayerApiKey and apiSecret with relayerApiSecret in the call to handler().

@zijianwang90
Copy link

Agreed, would love to see an actual working example, it seems the forwarder contract has also been upgraded, while the demo is calling another one.

For example, the verify function needs deadline and signature as parameters now.

forwarder.getNonce is also not a function on the forwarder contract whereas it actually nonces now.

yarn relay wouldn't really work and gives Error: Cannot find module '../action/'

if I copy the code in action to relay.js, it'll say 'too many arguments: passed to contract', since forwarder.verify only accepts only one parameter

After I reconstruct the request parameter according to ERC2771Forwarder.sol, it'll finally give me an error Error: Invalid request, which I don't know how to fix it anymore.

@EduardoMelo00
Copy link

Hey @zijianwang90 , i'm with the same problem (After I reconstruct the request parameter according to ERC2771Forwarder.sol, it'll finally give me an error Error: Invalid request, which I don't know how to fix it anymore.)

I could solve the others but still show the Invalid Request.

Did you manage to solve it ?

thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants