mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Avoid duplicate function definitions
Avoid duplicate function definitions for: - ensure_owner_or_root() - ensure_not_halted() - set_owner() - set_operating_mode() / set_operational() Signed-off-by: Serban Iorga <serban@parity.io>
This commit is contained in:
committed by
Bastian Köcher
parent
a97dedb50f
commit
ff342fafa9
@@ -97,12 +97,15 @@ impl<AccountId> TaggedAccount<AccountId> {
|
||||
pub fn tag(&self) -> String {
|
||||
match *self {
|
||||
TaggedAccount::Headers { ref bridged_chain, .. } => format!("{}Headers", bridged_chain),
|
||||
TaggedAccount::Parachains { ref bridged_chain, .. } =>
|
||||
format!("{}Parachains", bridged_chain),
|
||||
TaggedAccount::Messages { ref bridged_chain, .. } =>
|
||||
format!("{}Messages", bridged_chain),
|
||||
TaggedAccount::MessagesPalletOwner { ref bridged_chain, .. } =>
|
||||
format!("{}MessagesPalletOwner", bridged_chain),
|
||||
TaggedAccount::Parachains { ref bridged_chain, .. } => {
|
||||
format!("{}Parachains", bridged_chain)
|
||||
},
|
||||
TaggedAccount::Messages { ref bridged_chain, .. } => {
|
||||
format!("{}Messages", bridged_chain)
|
||||
},
|
||||
TaggedAccount::MessagesPalletOwner { ref bridged_chain, .. } => {
|
||||
format!("{}MessagesPalletOwner", bridged_chain)
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user