Skip to content

Commit

Permalink
remove zenlink transfer control
Browse files Browse the repository at this point in the history
  • Loading branch information
herryho committed Nov 25, 2021
1 parent 88f58d4 commit 222575a
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions runtime/bifrost/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bifrost"),
impl_name: create_runtime_str!("bifrost"),
authoring_version: 1,
spec_version: 908,
spec_version: 909,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -191,27 +191,8 @@ impl Contains<Call> for CallFilter {
return true;
}

// temporarily ban ZLK transfer and PhragmenElection
let is_temporarily_banned = matches!(
call,
Call::Currencies(orml_currencies::Call::transfer {
dest: _,
currency_id: CurrencyId::Token(TokenSymbol::ZLK),
amount: _,
}) | Call::Tokens(orml_tokens::Call::transfer {
dest: _,
currency_id: CurrencyId::Token(TokenSymbol::ZLK),
amount: _,
}) | Call::Tokens(orml_tokens::Call::transfer_all {
dest: _,
currency_id: CurrencyId::Token(TokenSymbol::ZLK),
keep_alive: _,
}) | Call::Tokens(orml_tokens::Call::transfer_keep_alive {
dest: _,
currency_id: CurrencyId::Token(TokenSymbol::ZLK),
amount: _,
}) | Call::PhragmenElection(_)
);
// temporarily ban PhragmenElection
let is_temporarily_banned = matches!(call, Call::PhragmenElection(_));

if is_temporarily_banned {
return false;
Expand Down

0 comments on commit 222575a

Please sign in to comment.