Skip to content

Commit

Permalink
Router_dispatch directly returning the return value
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeCaner committed Feb 24, 2025
1 parent c93f54d commit 3c0dbe8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cairo/crates/contracts/src/client/router_component.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,15 @@ pub mod RouterComponent {
fee_token_dispatcher.approve(mailbox_dispatcher.contract_address, value);
}

let value = mailbox_dispatcher
mailbox_dispatcher
.dispatch(
destination_domain,
router,
message_body,
value,
Option::Some(hook_metadata),
Option::Some(hook),
);
value
)
}

fn _Router_quote_dispatch(
Expand Down

0 comments on commit 3c0dbe8

Please sign in to comment.