Skip to content

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

Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
@linear
Copy link

linear bot commented Nov 4, 2024

@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.

3 participants