Bump deps (#215)

This commit is contained in:
Jaco Greeff
2019-09-25 14:00:43 +02:00
committed by GitHub
parent fb59238ef0
commit 741ca2a150
15 changed files with 614 additions and 713 deletions
+4 -8
View File
@@ -64,15 +64,11 @@ export default class Base {
}
public decodeAddress = (key: string | Uint8Array, ignoreChecksum?: boolean, ss58Format?: Prefix): Uint8Array => {
// FIXME Tryings are wrong... :()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return (this.keyring.decodeAddress as any)(key, ignoreChecksum, ss58Format);
return this.keyring.decodeAddress(key, ignoreChecksum, ss58Format);
}
public encodeAddress = (key: string | Uint8Array, ss58Format?: Prefix): string => {
// FIXME Tryings are wrong... :()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return (this.keyring.encodeAddress as any)(key, ss58Format);
return this.keyring.encodeAddress(key, ss58Format);
}
public getPair (address: string | Uint8Array): KeyringPair {
@@ -100,8 +96,8 @@ export default class Base {
return password.length > 0 && password.length <= MAX_PASS_LEN;
}
public setSS58Format (ss58Format: number): void {
this._ss58Format = ss58Format as Prefix;
public setSS58Format (ss58Format: Prefix): void {
this._ss58Format = ss58Format;
}
public setDevMode (isDevelopment: boolean): void {