Skip to content

Commit

Permalink
+ IMessageRecipient interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Sep 1, 2024
1 parent 7969ebe commit c020682
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cairo/src/contracts/token/interfaces/imessage_recipient.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use alexandria_bytes::Bytes;
use starknet::ContractAddress;

#[starknet::interface]
pub trait IMessageRecipient<TState> {
fn handle(ref self: TState, origin: u32, sender: Option<ContractAddress>, message: Bytes);
}

0 comments on commit c020682

Please sign in to comment.