mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
Extract select_bridge macro. (#869)
This commit is contained in:
committed by
Bastian Köcher
parent
52e3967a2d
commit
ed5577bf33
@@ -29,7 +29,8 @@ pub type MillauClient = relay_substrate_client::Client<Millau>;
|
||||
pub type RialtoClient = relay_substrate_client::Client<Rialto>;
|
||||
|
||||
use crate::cli::{
|
||||
encode_call::{self, Call, CliEncodeCall, MILLAU_TO_RIALTO_INDEX, RIALTO_TO_MILLAU_INDEX},
|
||||
bridge::{MILLAU_TO_RIALTO_INDEX, RIALTO_TO_MILLAU_INDEX},
|
||||
encode_call::{self, Call, CliEncodeCall},
|
||||
CliChain, ExplicitOrMaximal, HexBytes, Origins,
|
||||
};
|
||||
use codec::{Decode, Encode};
|
||||
@@ -426,7 +427,7 @@ impl CliEncodeCall for Millau {
|
||||
fee,
|
||||
bridge_instance_index,
|
||||
} => match *bridge_instance_index {
|
||||
encode_call::MILLAU_TO_RIALTO_INDEX => {
|
||||
MILLAU_TO_RIALTO_INDEX => {
|
||||
let payload = Decode::decode(&mut &*payload.0)?;
|
||||
millau_runtime::Call::BridgeRialtoMessages(millau_runtime::MessagesCall::send_message(
|
||||
lane.0,
|
||||
@@ -499,7 +500,7 @@ impl CliEncodeCall for Rialto {
|
||||
fee,
|
||||
bridge_instance_index,
|
||||
} => match *bridge_instance_index {
|
||||
encode_call::RIALTO_TO_MILLAU_INDEX => {
|
||||
RIALTO_TO_MILLAU_INDEX => {
|
||||
let payload = Decode::decode(&mut &*payload.0)?;
|
||||
rialto_runtime::Call::BridgeMillauMessages(rialto_runtime::MessagesCall::send_message(
|
||||
lane.0, payload, fee.0,
|
||||
|
||||
Reference in New Issue
Block a user