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: pass consistencyLevel to WormholeRelayer during send #538

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xIryna
Copy link

@0xIryna 0xIryna commented Oct 21, 2024

Motivation

WormholeTransceiver takes consistencyLevel in the constructor, but doesn't pass it to WormholeRelayer in _sendMessage resulting in FINALIZED consistency level being used by default.

Proposed Changes

IWormholeRelayer.sendPayloadToEvm function call was replaced with IWormholeRelayer.sendToEvm to allow passing consistency level. The rest of parameters were filled from WormholeRelayer implementation.

Tests

I'm happy to add tests for the proposed changes, but there isn't any existing tests for the Transceivers

@0xIryna 0xIryna changed the title Pass consistencyLevel to WormholeRelayer during send evm: pass consistencyLevel to WormholeRelayer during send Oct 21, 2024
@nik-suri nik-suri force-pushed the fix/pass-consistency-level-to-relayer branch from 803267b to 802d7e5 Compare November 7, 2024 01:48
@evan-gray evan-gray force-pushed the fix/pass-consistency-level-to-relayer branch from 802d7e5 to c4cfae7 Compare November 11, 2024 13:54
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.

3 participants