Skip to content

Commit

Permalink
passkey: whitelisted capacity (#2102)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is whitelist Capacity pallet transactions for
passkey.

Closes  #2032

# Discussion
- I checked `TransactionPayment` pallet and there were no extrinsics on
that pallet so there were no reason to whitelist it
- I checked `FrequencyTxPayment` pallet and there were no token based
extrinsics as far as I checked so it was also not included.

# Checklist
- [X] Spec version incremented?
  • Loading branch information
aramikm authored Jul 29, 2024
1 parent 21f1bde commit 11297e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/frequency/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ impl Contains<RuntimeCall> for PasskeyCallFilter {

RuntimeCall::Balances(pallet_balances::Call::transfer_keep_alive { .. }) |
RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death { .. }) |
RuntimeCall::Balances(pallet_balances::Call::transfer_all { .. }) => true,
RuntimeCall::Balances(pallet_balances::Call::transfer_all { .. }) |
RuntimeCall::Capacity(_) => true,
_ => false,
}
}
Expand Down Expand Up @@ -363,7 +364,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frequency"),
impl_name: create_runtime_str!("frequency"),
authoring_version: 1,
spec_version: 99,
spec_version: 100,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -377,7 +378,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frequency-testnet"),
impl_name: create_runtime_str!("frequency"),
authoring_version: 1,
spec_version: 99,
spec_version: 100,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down

0 comments on commit 11297e0

Please sign in to comment.