mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Statemint Should Not Recognise DOT Reserves (#1318)
* recognise no reserves * adjust should_execute * docs and pass should_execute * typo
This commit is contained in:
@@ -137,13 +137,14 @@ impl ShouldExecute for DenyReserveTransferToRelayChain {
|
||||
return Err(()) // Deny
|
||||
}
|
||||
|
||||
// allow reserve transfers to arrive from relay chain
|
||||
// An unexpected reserve transfer has arrived from the Relay Chain. Generally, `IsReserve`
|
||||
// should not allow this, but we just log it here.
|
||||
if matches!(origin, MultiLocation { parents: 1, interior: Here }) &&
|
||||
message.0.iter().any(|inst| matches!(inst, ReserveAssetDeposited { .. }))
|
||||
{
|
||||
log::warn!(
|
||||
target: "xcm::barriers",
|
||||
"Unexpected ReserveAssetDeposited from the relay chain",
|
||||
"Unexpected ReserveAssetDeposited from the Relay Chain",
|
||||
);
|
||||
}
|
||||
// Permit everything else
|
||||
|
||||
Reference in New Issue
Block a user