Bump dev (w/ eslint 8 & fixes) (#530)

This commit is contained in:
Jaco
2021-10-18 07:21:06 +03:00
committed by GitHub
parent bc4b5090b4
commit 782f87fc17
12 changed files with 194 additions and 195 deletions
+2 -2
View File
@@ -61,11 +61,11 @@ export class Base {
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
}
};
public encodeAddress = (key: string | Uint8Array, ss58Format?: Prefix): string => {
return this.keyring.encodeAddress(key, ss58Format);
}
};
public getPair (address: string | Uint8Array): KeyringPair {
return this.keyring.getPair(address);
+2 -1
View File
@@ -13,7 +13,8 @@ export class BrowserStore implements KeyringStore {
}
public get (key: string, cb: (value: KeyringJson) => void): void {
cb(store.get(key));
// eslint-disable-next-line node/no-callback-literal
cb(store.get(key) as KeyringJson);
}
public remove (key: string, cb?: () => void): void {