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

trouble with providing a nonce for a Gnosis Safe transaction #578

Open
Pasha8914 opened this issue Jun 11, 2024 · 1 comment
Open

trouble with providing a nonce for a Gnosis Safe transaction #578

Pasha8914 opened this issue Jun 11, 2024 · 1 comment

Comments

@Pasha8914
Copy link

Pasha8914 commented Jun 11, 2024

I need to send multiple transactions to Gnosis Safe, but Gnosis Safe does not automatically increment the nonce immediately after signing a transaction. Therefore, I need to provide the nonce manually, but Gnosis Safe ignores this argument.

Link to Minimal Reproducible Example

code: https://github.com/Pasha8914/wagmi-safe-bug
preview: https://pasha8914.github.io/wagmi-safe-bug

Steps to Reproduce the Issue

1 - Start the demo project from this repository.
2- Open Safe Global.
3 - Navigate to the Apps section.
4 - Select My Custom Apps.
5 - Paste your local app URL.
6 - Click Send 2 txs.

OR

1 - Open Safe Global.
2 - Navigate to the Apps section.
3 - Select My Custom Apps.
4 - Paste https://pasha8914.github.io/wagmi-safe-bug
5 - Click Send 2 txs.

You will observe that the first and second transactions have the same nonce, although different nonces were provided.

Screen.Recording.2024-06-11.at.00.mp4
@schmanu
Copy link
Member

schmanu commented Jul 3, 2024

There was an issue with the recommended Nonce not refreshing if a transaction never hit the queue so for instance for a 1/n Safe that directly executes the tx as in your attached recording.
This change should fix this: safe-global/safe-wallet-web#3872
It will be included in our next release which is expected to go live mid of next week.

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

2 participants