Skip to content

Commit

Permalink
feat: allow xtoken in dispatch precompile (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma authored Apr 3, 2024
1 parent 4a4165c commit a8520ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/astar/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
}
RuntimeCall::DappStaking(_) => true,
RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset_with_fee { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset { .. }) => true,
_ => false,
}
}
Expand Down
2 changes: 2 additions & 0 deletions runtime/shibuya/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
}
RuntimeCall::DappStaking(_) => true,
RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset_with_fee { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset { .. }) => true,
_ => false,
}
}
Expand Down
2 changes: 2 additions & 0 deletions runtime/shiden/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
}
RuntimeCall::DappStaking(_) => true,
RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset_with_fee { .. }) => true,
RuntimeCall::XTokens(orml_xtokens::Call::transfer_multiasset { .. }) => true,
_ => false,
}
}
Expand Down

0 comments on commit a8520ab

Please sign in to comment.