mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 22:21:07 +00:00
Authoring with WASM runtime (#580)
This commit is contained in:
committed by
Robert Habermeier
parent
bde4152f1e
commit
e482958705
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -272,6 +272,14 @@ impl<T: Trait> Module<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Lookup an address to get an Id, if there's one there.
|
||||
pub fn lookup_address(a: address::Address<T::AccountId, T::AccountIndex>) -> Option<T::AccountId> {
|
||||
match a {
|
||||
address::Address::Id(i) => Some(i),
|
||||
address::Address::Index(i) => Self::lookup_index(i),
|
||||
}
|
||||
}
|
||||
|
||||
// PUBLIC DISPATCH
|
||||
|
||||
/// Transfer some unlocked staking balance to another staker.
|
||||
|
||||
Reference in New Issue
Block a user