Remove indices from node-template (#5025)

* Remove indices from node-template

* Use identity lookup instead

* Bump impl

* clean cargo.toml
This commit is contained in:
Shawn Tabrizi
2020-02-25 15:51:46 +01:00
committed by GitHub
parent d024364503
commit e2d50d558b
5 changed files with 9 additions and 33 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ impl<T: Trait> StaticLookup for Module<T> {
type Source = address::Address<T::AccountId, T::AccountIndex>;
type Target = T::AccountId;
fn lookup(a: Self::Source) -> Result<T::AccountId, LookupError> {
fn lookup(a: Self::Source) -> Result<Self::Target, LookupError> {
Self::lookup_address(a).ok_or(LookupError)
}