mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Support dedicated lanes for pallets (#962)
* pass call origin to the message verifier * is_outbound_lane_enabled -> is_message_accepted * trait SenderOrigin * only accept messages from token swap pallet to token swap lane * tests for edge cases of pay_delivery_and_dispatch_fee * fixed origin verification * fmt * fix benchmarks compilation * fix TODO with None account and non-zero message fee (already covered by tests) * revert cargo fmt changes temporarily
This commit is contained in:
committed by
Bastian Köcher
parent
7b7b8baa60
commit
ed2a3082ef
@@ -18,7 +18,7 @@
|
||||
|
||||
use crate::{
|
||||
swap_account_id, target_account_at_this_chain, BridgedAccountIdOf, BridgedAccountPublicOf,
|
||||
BridgedAccountSignatureOf, BridgedBalanceOf, Call, Pallet, ThisChainBalance,
|
||||
BridgedAccountSignatureOf, BridgedBalanceOf, Call, Origin, Pallet, ThisChainBalance,
|
||||
TokenSwapCreationOf, TokenSwapOf,
|
||||
};
|
||||
|
||||
@@ -43,6 +43,7 @@ pub trait Config<I: 'static>: crate::Config<I> {
|
||||
benchmarks_instance_pallet! {
|
||||
where_clause {
|
||||
where
|
||||
Origin<T, I>: Into<T::Origin>,
|
||||
BridgedAccountPublicOf<T, I>: Decode + Parameter,
|
||||
BridgedAccountSignatureOf<T, I>: Decode,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user