mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-19 00:56:08 +00:00
Rename MessageId -> BridgeMessageId (#1152)
This commit is contained in:
1 parent
084da4343d
commit
eaf519dc1b
6 files changed
+25
-25
No files matched your search
@@ -34,7 +34,7 @@ pub type Weight = u64;
|
||||
pub type SpecVersion = u32;
|
||||
|
||||
/// A generic trait to dispatch arbitrary messages delivered over the bridge.
|
||||
pub trait MessageDispatch<AccountId, MessageId> {
|
||||
pub trait MessageDispatch<AccountId, BridgeMessageId> {
|
||||
/// A type of the message to be dispatched.
|
||||
type Message: codec::Decode;
|
||||
|
||||
@@ -60,7 +60,7 @@ pub trait MessageDispatch<AccountId, MessageId> {
|
||||
fn dispatch<P: FnOnce(&AccountId, Weight) -> Result<(), ()>>(
|
||||
source_chain: ChainId,
|
||||
target_chain: ChainId,
|
||||
id: MessageId,
|
||||
id: BridgeMessageId,
|
||||
message: Result<Self::Message, ()>,
|
||||
pay_dispatch_fee: P,
|
||||
) -> MessageDispatchResult;
|
||||
|
||||
Reference in new issue
Block a user