Skip to content
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 staking proxy #607

Merged
merged 8 commits into from
May 31, 2024
Merged

add staking proxy #607

merged 8 commits into from
May 31, 2024

Conversation

ccubu
Copy link
Contributor

@ccubu ccubu commented May 30, 2024

No description provided.

@ccubu ccubu mentioned this pull request May 30, 2024
@ccubu ccubu linked an issue May 30, 2024 that may be closed by this pull request
asiniscalchi
asiniscalchi previously approved these changes May 31, 2024
}

fn is_superset(&self, o: &Self) -> bool {
match (self, o) {
(x, y) if x == y => true,
(ProxyType::Any, _) => true,
(_, ProxyType::Staking) => false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here you can simplify adding a default to be false
_ => false

);

// Send some money to pure proxy
let call = RuntimeCall::Balances(pallet_balances::Call::force_transfer {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about using a "normal transfer" ..

@ccubu ccubu merged commit 2c86d40 into main May 31, 2024
8 checks passed
@ccubu ccubu deleted the feat/proxy-staking branch May 31, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add staking proxy type
2 participants