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>
📝 WalkthroughWalkthroughA bug fix increments the fetched nonce by 1 in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 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)
No actionable comments were generated in the recent review. 🎉 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
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