Skip to content

Commit

Permalink
fix: comment app messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiss committed Jan 4, 2024
1 parent 77995e6 commit 1e756b7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contracts/ark_starknet/src/appchain_messaging.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,16 @@ mod appchain_messaging {
selector: felt252,
payload: Span<felt252>,
) {
self.emit(MessageExecuted { from_address, to_address, selector, payload, });
self.emit(MessageExecuted { from_address, to_address, selector, payload, })
// assert(
// self.appchain_account.read() == starknet::get_caller_address(),
// 'Unauthorized executor',
// );
// match starknet::call_contract_syscall(to_address, selector, payload) {
// Result::Ok(span) => self
// .emit(MessageExecuted { from_address, to_address, selector, payload, }),
// Result::Err(e) => { panic(e) }
// }
}
}
}

0 comments on commit 1e756b7

Please sign in to comment.