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

evm: Fix empty instructions for WH endpoint #182

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

djb15
Copy link
Collaborator

@djb15 djb15 commented Feb 24, 2024

Currently the transfer(uint256 amount, uint16 recipientChain, bytes32 recipient) variant always fails with the WH endpoint since the instruction payload is 0 bytes long by default when it isn't provided. This updates the parser to exit early and default to false if no instructions are provided.

@djb15 djb15 linked an issue Feb 24, 2024 that may be closed by this pull request
@djb15 djb15 force-pushed the fix-wormhole-endpoint-parsing branch from e329050 to ba4e39d Compare February 24, 2024 02:44
@djb15 djb15 force-pushed the fix-wormhole-endpoint-parsing branch 2 times, most recently from 76b7efe to 50694ee Compare February 24, 2024 22:56
@kcsongor kcsongor force-pushed the fix-wormhole-endpoint-parsing branch from 50694ee to 5b0c88d Compare February 24, 2024 22:57
@kcsongor kcsongor merged commit 7c01427 into main Feb 24, 2024
3 checks passed
@kcsongor kcsongor deleted the fix-wormhole-endpoint-parsing branch February 24, 2024 22:58
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.

Base Transfer() function doesn't work
3 participants