Repository navigation
fix(sdk): missing getSignedBytes method - #3073
Conversation
📝 WalkthroughWalkthroughAdds a public Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@packages/wasm-sdk/tests/unit/data-contract.spec.ts`:
- Line 467: Remove the stray character 's' that was accidentally left in the
test file (packages/wasm-sdk/tests/unit/data-contract.spec.ts) which will cause
a ReferenceError at runtime; locate the lone 's' outside any valid expression
(the single-character diff shown) and delete it so the file contains only valid
test code, then run the unit tests to confirm no syntax/runtime errors remain.
|
Are the removed tests cases covered elsewhere? They were originally added to close a gap in test coverage that allowed a bug to go unnoticed. |
Issue being fixed or feature implemented
Missing
getSignedBytesmethod inStateTransitionclass (wasm-dpp2).Failing tests in
wasm-sdkpackages.What was done?
getSignableBytes()method toStateTransitionWasminwasm-dpp2: The method was being tested but not exposed via wasm-bindgen. It delegates to the existingsignable_bytes()on the innerStateTransition.getSignableBytestest expectation inwasm-dpp2: Updated expected byte length from 229 to 230 to match actual serialization output.wasm-sdk.How Has This Been Tested?
wasm-dpp2:yarn build && yarn test— 718 passing, 7 pending, 0 failingwasm-sdk:yarn build && yarn test— 186 passing, 0 failingBreaking Changes
None
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
New Features
Tests