-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: MessageOut encode/decode for fuel-core v0.18 #1090
Conversation
Coverage report
Show files with reduced coverage 🔻
Test suite run success1001 tests passing in 180 suites. Report generated by 🧪jest coverage report action from f53da43 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪄
Only request is could the PR name be more specific to message encoding/decoding so it can be easily found when this breaks again when it's fixed in fuel-core |
You think now is better? |
[decoded, o] = new B256Coder().decode(data, o); | ||
const digest = decoded; | ||
[decoded, o] = new ByteArrayCoder(len).decode(data, o); | ||
// TODO: remove this once fuel-vm is fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, is there an issue open on the fuel-vm repo that we can subscribe to in order to know when this gets fixed i.e. when we need to work on a fix here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just saw that FuelLabs/fuel-core#1240 was closed. Do we need to work on a fix now? @luizstacio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should address this at: #1112
Fix message decode for fuel-core 0.18.3.
This PR, Includes a temporary solution for a bug found on the fuel-vm side. The fix for this issue would generate a break change. This is why we are proposing the temp solution directly on the SDK level for now.
With this solution, the MessageReceiptOut encoder will not match the encoding results, as our encode works correctly according to the specs.
Current message out bytes returned from fuel-core