Skip to content
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

Updated OFTCoreV2 for convenient use of the address format bytes32. #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants