Bump util/util-crypto (#450)

This commit is contained in:
Jaco Greeff
2021-03-05 17:04:56 +01:00
committed by GitHub
parent 78ca8b86a8
commit 7588f21b8f
10 changed files with 115 additions and 115 deletions
+1 -1
View File
@@ -295,7 +295,7 @@ export class Keyring extends Base implements KeyringStruct {
const cryptoType = Array.isArray(json.encoding.content) ? json.encoding.content[1] : 'ed25519';
const encType = Array.isArray(json.encoding.type) ? json.encoding.type : [json.encoding.type];
const pair = createPair(
{ toSS58: this.encodeAddress, type: cryptoType },
{ toSS58: this.encodeAddress, type: cryptoType as KeypairType },
{ publicKey: this.decodeAddress(json.address, true) },
json.meta,
isHex(json.encoded) ? hexToU8a(json.encoded) : base64Decode(json.encoded),