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

fix(wallet)_: in case of sepolia optimism returned a nonce is not generated the same way as it is for optimism mainnet #6215

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

saledjenic
Copy link
Contributor

Changes done here simply increment the resolved nonce by sepolia optimism chain by one, cause it's differently generated that it is for mainnet sepolia and other chains. This change aligns on that.

@status-im-auto
Copy link
Member

status-im-auto commented Dec 13, 2024

Jenkins Builds

Click to see older builds (8)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 3e165d0 #1 2024-12-13 17:31:08 ~3 min macos 📦zip
✖️ 3e165d0 #1 2024-12-13 17:31:14 ~3 min tests 📄log
✔️ 3e165d0 #1 2024-12-13 17:31:26 ~4 min ios 📦zip
✔️ 3e165d0 #1 2024-12-13 17:32:57 ~5 min linux 📦zip
✔️ 3e165d0 #1 2024-12-13 17:33:13 ~5 min android 📦aar
✔️ 3e165d0 #1 2024-12-13 17:33:25 ~5 min windows 📦zip
✔️ 3e165d0 #1 2024-12-13 17:34:04 ~6 min tests-rpc 📄log
✔️ 3e165d0 #1 2024-12-13 17:35:32 ~8 min macos 📦zip
Commit #️⃣ Finished (UTC) Duration Platform Result
✖️ 5878311 #2 2024-12-15 17:43:06 ~2 min tests 📄log
✔️ 5878311 #2 2024-12-15 17:44:21 ~4 min ios 📦zip
✔️ 5878311 #2 2024-12-15 17:44:52 ~4 min windows 📦zip
✔️ 5878311 #2 2024-12-15 17:45:55 ~5 min linux 📦zip
✔️ 5878311 #2 2024-12-15 17:46:06 ~5 min android 📦aar
✔️ 5878311 #2 2024-12-15 17:46:43 ~6 min tests-rpc 📄log
✔️ 5878311 #2 2024-12-15 17:47:54 ~7 min macos 📦zip
✔️ 5878311 #2 2024-12-15 17:48:57 ~8 min macos 📦zip
✔️ c212616 #3 2024-12-15 18:05:09 ~3 min macos 📦zip
✔️ c212616 #3 2024-12-15 18:05:09 ~4 min ios 📦zip
✔️ c212616 #3 2024-12-15 18:05:17 ~4 min windows 📦zip
✔️ c212616 #3 2024-12-15 18:06:50 ~5 min linux 📦zip
✔️ c212616 #3 2024-12-15 18:06:52 ~5 min android 📦aar
✖️ c212616 #3 2024-12-15 18:07:44 ~6 min tests-rpc 📄log
✔️ c212616 #3 2024-12-15 18:09:08 ~7 min macos 📦zip
✖️ c212616 #3 2024-12-15 18:30:20 ~29 min tests 📄log
✖️ c212616 #4 2024-12-15 22:21:14 ~30 min tests 📄log
✔️ c212616 #5 2024-12-15 23:16:16 ~29 min tests 📄log
✔️ c212616 #4 2024-12-16 07:52:57 ~4 min tests-rpc 📄log

@saledjenic saledjenic force-pushed the fix/sepolia-optimism-nonce branch from 3e165d0 to 5878311 Compare December 15, 2024 17:39
…erated the same way as it is for optimism mainnet

Changes done here simply increment the resolved nonce by sepolia optimism chain by one, cause
it's differently generated that it is for mainnet sepolia and other chains. This change aligns on that.
@saledjenic saledjenic force-pushed the fix/sepolia-optimism-nonce branch from 5878311 to c212616 Compare December 15, 2024 18:00
Copy link

codecov bot commented Dec 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 61.23%. Comparing base (6685032) to head (c212616).
Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
transactions/transactor.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6215      +/-   ##
===========================================
+ Coverage    61.20%   61.23%   +0.02%     
===========================================
  Files          833      833              
  Lines       109925   109927       +2     
===========================================
+ Hits         67279    67311      +32     
+ Misses       34772    34747      -25     
+ Partials      7874     7869       -5     
Flag Coverage Δ
functional 19.37% <0.00%> (+0.05%) ⬆️
unit 59.98% <0.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
transactions/transactor.go 65.86% <0.00%> (-0.41%) ⬇️

... and 30 files with indirect coverage changes

@saledjenic
Copy link
Contributor Author

I would postpone merging this PR, cause what I've figured out these days is that sometimes nodefleet (the same as pokt before) is out of node sync and they return incorrect responses. At the time when I did this PR I didn't check other providers, but trusted to response and thought it's up to the chain. But if we look at the screenshots below and some checks I did, it looks like provider's issue.

- nodefleet via Status Proxy - wrong Nonce returned
image

- infura via StatusProcy - correct nonce
image

- infura direct access - correct nonce
image

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

Successfully merging this pull request may close these issues.

3 participants