You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comments to clarify the order of struct parsing
The 'wire format' of the Transceiver messages encodes/decodes the fields
of the struct in reverse order to how they are declared in the Solidity
and Rust structs.
This is done safely, and we have unit tests to verify that the
encoding/decoding process is consistent on both sides. However, it's not
clear that this is intentional when reading through the code.
This comment should help with readability and hopefully will stop
reviewers from falling down rabbit holes.
0 commit comments