-
Notifications
You must be signed in to change notification settings - Fork 59
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
[@0xsequence/relayer] prepareTransactions doesn't work with undeployed wallets #309
Comments
Thanks for your report, could you please add what version of sequence.js you encountered this error on? |
Also, can you try calling:
directly to see if that resolves your issue? |
I'm tested against v0.42.8
This successfully deploy the wallet and execute the given transaction. However I wanted to get the output data to pass to our local relayer in another process instead of executing it immediately. Hence I needed the |
Can you please try is copying this: sequence.js/packages/relayer/src/rpc-relayer/index.ts Lines 189 to 197 in 114d881
to (the "to" address) and input (the calldata).
(Replace |
Thanks for the suggestion. I already gave it a try and it worked well. I guess the |
When calling
prepareTransactions
from base-relayer for the first transactions of an undeployed sequence wallet, this error was thrownMy approach was that I firstly signed the txns using
wallet.signTransactions
and then passed the attributes from the signed Transactions toprepareTransactions
.I found the issue was in these LOC
The transaction produced by signTransactions has the nonce of
0
instead ofBigNumber { 0x0 }
hence this check!nonce
is true for bothundefined
and0
values.How can I do differently to use this
prepareTransactions
for the first txns?The text was updated successfully, but these errors were encountered: