fix(wasm-sdk): increment address nonce in identity_create_from_addresses#3084
fix(wasm-sdk): increment address nonce in identity_create_from_addresses#3084
Conversation
The WASM SDK's fetch_nonces_into_address_map was sending the current address nonce, but the platform expects current + 1. This matches the nonce_inc() pattern already used by rs-sdk's transfer_address_funds, top_up_from_addresses, and withdraw_address_funds. Closes #3083 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughfetch_nonces_into_address_map in the WASM SDK now returns the fetched nonce incremented by 1. Tests were added to assert the incremented nonce behavior. A dev-dependency on tokio was added for test support. Changes
Sequence Diagram(s)(Skipped — change is a targeted nonce adjustment and local tests; does not introduce a new multi-component flow requiring sequence diagrams.) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
thephez
left a comment
There was a problem hiding this comment.
We should have some tests to avoid future regressions probably
Co-authored-by: Claude <noreply@anthropic.com>
|
@thephez please confirm that this has solved your issue |
Summary
identity_create_from_addresses: the WASM SDK was sending the current address nonce, but the platform expects current + 1fetch_nonces_into_address_mapwith thenonce_inc()pattern already used by rs-sdk'stransfer_address_funds,top_up_from_addresses, andwithdraw_address_fundsCloses #3083
Test plan
identity_create_from_addressesno longer gets rejected with a nonce mismatch errorcargo check -p wasm-sdk— passes cleanly🤖 Generated with Claude Code
Summary by CodeRabbit