Skip to content

Commit

Permalink
Allow EVM accounts to participate
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Nov 20, 2024
1 parent d6557f4 commit 36ad58a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion runtime/astar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,8 @@ impl InstanceFilter<RuntimeCall> for CommunityCouncilCallFilter {
c,
RuntimeCall::DappStaking(..)
| RuntimeCall::System(frame_system::Call::remark { .. })
| RuntimeCall::Utility(..)
| RuntimeCall::Utility(pallet_utility::Call::batch { .. })
| RuntimeCall::Utility(pallet_utility::Call::batch_all { .. })
)
}
}
Expand Down
5 changes: 5 additions & 0 deletions runtime/astar/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
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,
// Governance related calls
RuntimeCall::Democracy(_)
| RuntimeCall::Treasury(_)
| RuntimeCall::CommunityTreasury(_)
| RuntimeCall::Preimage(_) => true,
_ => false,
}
}
Expand Down
3 changes: 2 additions & 1 deletion runtime/local/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,8 @@ impl InstanceFilter<RuntimeCall> for CommunityCouncilCallFilter {
c,
RuntimeCall::DappStaking(..)
| RuntimeCall::System(frame_system::Call::remark { .. })
| RuntimeCall::Utility(..)
| RuntimeCall::Utility(pallet_utility::Call::batch { .. })
| RuntimeCall::Utility(pallet_utility::Call::batch_all { .. })
)
}
}
Expand Down
4 changes: 4 additions & 0 deletions runtime/local/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
}
RuntimeCall::DappStaking(_) => true,
RuntimeCall::Assets(pallet_assets::Call::transfer { .. }) => true,
RuntimeCall::Democracy(_)
| RuntimeCall::Treasury(_)
| RuntimeCall::CommunityTreasury(_)
| RuntimeCall::Preimage(_) => true,
_ => false,
}
}
Expand Down
3 changes: 2 additions & 1 deletion runtime/shibuya/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,8 @@ impl InstanceFilter<RuntimeCall> for CommunityCouncilCallFilter {
c,
RuntimeCall::DappStaking(..)
| RuntimeCall::System(frame_system::Call::remark { .. })
| RuntimeCall::Utility(..)
| RuntimeCall::Utility(pallet_utility::Call::batch { .. })
| RuntimeCall::Utility(pallet_utility::Call::batch_all { .. })
)
}
}
Expand Down
5 changes: 5 additions & 0 deletions runtime/shibuya/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ impl Contains<RuntimeCall> for WhitelistedCalls {
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,
// Governance related calls
RuntimeCall::Democracy(_)
| RuntimeCall::Treasury(_)
| RuntimeCall::CommunityTreasury(_)
| RuntimeCall::Preimage(_) => true,
_ => false,
}
}
Expand Down

0 comments on commit 36ad58a

Please sign in to comment.