mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
Fix insufficient balance when send message. (#1020)
* fix insufficient balance when send message. * Revert "fix insufficient balance when send message." This reverts commit b7a539c77b1eb0c6f7ccb1333e9fd2c4e18f8cbc. * More derived account used for send messages. * typo fix * trigger build
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ the `relays` which are used to pass messages between chains.
|
|||||||
│ └── ...
|
│ └── ...
|
||||||
├── relays // Application for sending headers and messages between chains
|
├── relays // Application for sending headers and messages between chains
|
||||||
│ └── ...
|
│ └── ...
|
||||||
└── scripts // Useful development and maintenence scripts
|
└── scripts // Useful development and maintenance scripts
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running the Bridge
|
## Running the Bridge
|
||||||
|
|||||||
@@ -144,12 +144,21 @@ impl Alternative {
|
|||||||
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Alice"),
|
get_account_id_from_seed::<sr25519::Public>("Alice"),
|
||||||
)),
|
)),
|
||||||
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Bob"),
|
||||||
|
)),
|
||||||
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Charlie"),
|
get_account_id_from_seed::<sr25519::Public>("Charlie"),
|
||||||
)),
|
)),
|
||||||
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Dave"),
|
||||||
|
)),
|
||||||
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Eve"),
|
get_account_id_from_seed::<sr25519::Public>("Eve"),
|
||||||
)),
|
)),
|
||||||
|
derive_account_from_rialto_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
|
||||||
|
)),
|
||||||
],
|
],
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -142,12 +142,21 @@ impl Alternative {
|
|||||||
rialto_runtime::Runtime,
|
rialto_runtime::Runtime,
|
||||||
pallet_bridge_messages::DefaultInstance,
|
pallet_bridge_messages::DefaultInstance,
|
||||||
>::relayer_fund_account_id(),
|
>::relayer_fund_account_id(),
|
||||||
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Alice"),
|
||||||
|
)),
|
||||||
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Bob"),
|
get_account_id_from_seed::<sr25519::Public>("Bob"),
|
||||||
)),
|
)),
|
||||||
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Charlie"),
|
||||||
|
)),
|
||||||
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Dave"),
|
get_account_id_from_seed::<sr25519::Public>("Dave"),
|
||||||
)),
|
)),
|
||||||
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
|
get_account_id_from_seed::<sr25519::Public>("Eve"),
|
||||||
|
)),
|
||||||
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
derive_account_from_millau_id(bp_runtime::SourceAccount::Account(
|
||||||
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
|
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -310,12 +310,13 @@ impl<T: Config<I>, I: Instance> MessageDispatch<T::AccountId, T::MessageId> for
|
|||||||
|
|
||||||
log::trace!(
|
log::trace!(
|
||||||
target: "runtime::bridge-dispatch",
|
target: "runtime::bridge-dispatch",
|
||||||
"Message {:?}/{:?} has been dispatched. Weight: {} of {}. Result: {:?}",
|
"Message {:?}/{:?} has been dispatched. Weight: {} of {}. Result: {:?}. Call dispatch result: {:?}",
|
||||||
source_chain,
|
source_chain,
|
||||||
id,
|
id,
|
||||||
dispatch_result.unspent_weight,
|
dispatch_result.unspent_weight,
|
||||||
message.weight,
|
message.weight,
|
||||||
dispatch_result,
|
dispatch_result,
|
||||||
|
result,
|
||||||
);
|
);
|
||||||
|
|
||||||
Self::deposit_event(RawEvent::MessageDispatched(
|
Self::deposit_event(RawEvent::MessageDispatched(
|
||||||
|
|||||||
Reference in New Issue
Block a user