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

fix(svm): use free function in handling cctp #718

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

Reinis-FRP
Copy link
Contributor

For the sake of consistency use free function in internal handle_receive_message call. This also simplifies the external function.

Fixes: https://linear.app/uma/issue/ACX-3102/librs-refactor-handle-receive-message-to-be-consistent-with-using-free

@Reinis-FRP Reinis-FRP requested review from chrismaree and md0x November 4, 2024 10:50
Copy link
Member

@chrismaree chrismaree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice.

ctx: Context<'_, '_, '_, 'info, HandleReceiveMessage<'info>>,
params: HandleReceiveMessageParams,
) -> Result<()> {
let self_ix_data = translate_message(&params.message_body)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this order of operators is easier to understand

@Reinis-FRP Reinis-FRP merged commit 93b6679 into master Nov 4, 2024
9 checks passed
@Reinis-FRP Reinis-FRP deleted the reinis-frp/free-function-cctp branch November 4, 2024 12:46
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