Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

Conversation

DDWorld-dev
Copy link

Hello, I've been working with OFTV2 and noticed that during payload decoding in the _decodeSendPayload function to retrieve the 'to' address using the toAddress method, you were dropping the first 12 bytes of bytes32. Typically, when converting a bytes20 address to bytes32, we pad with zeros at the end rather than the beginning. Therefore, I made a correction for more convenient use. Additionally, in the OFTCoreV2 contract, ExcessivelySafeCall is imported, but it seems unnecessary since this library is already imported in the inherited NonblockingLzApp contract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants