-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pallet-proxy to runtimes #1322
base: manta
Are you sure you want to change the base?
Conversation
Signed-off-by: Dengjianping <[email protected]>
Signed-off-by: Jamie <[email protected]>
Signed-off-by: Jamie <[email protected]>
ProxyType::TransferNotDie => !matches!( | ||
c, | ||
RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death { .. }) | ||
), // proxy account cannot transfer all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will allow all calls that are not pallet_balances::Call::transfer_allow_death { .. }
, I don't think you can use the !matches
pattern for that reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless I'm mistaken but I think we would want a sanity integration test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fasle
means the call will be filtered, so if it's the transfer_allow_death
, !matches
will be false
. I guess it should be right. I will add a test case for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah but any other call will be true
, this means that TransferNotDie
will allow you to act as a proxy for every other extrinsic except transfer_allow_death
Description
Closes #1321
Before we can approve this PR for merge, please make sure that all the following items have been checked off:
L-
group to this PRA-
andC-
groups to this PRA-calamari
and/orA-manta
if your changes are meant for/impact either of these (CI depends on it)Files changed
in the Github PR explorer.A-integration-test-checks
to run start-integration-test-checks (Required)A-benchmark-checks
to run start-benchmark-check (Required)A-unit-test-checks
to run start-unit-test-checks (Required)A-congestion-test-checks
to run start-integration-test-checks (Optional)Situational Notes:
BaseFilter
. Ensure every extrinsic works from front-end. If there's corresponding tool, ensure both work for each other.try-runtime
. This includes migrations inherited from upstream changes, and you can search the diffs for modifications of#[pallet::storage]
items to check for any.