Bump common (#5043)
* Bump common * Adjust deprecated util signatures * Adjust * Adjust http mock typings
This commit is contained in:
@@ -24,16 +24,16 @@
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.6",
|
||||
"@polkadot/keyring": "^9.7.2",
|
||||
"@polkadot/keyring": "^10.0.1",
|
||||
"@polkadot/types-augment": "8.11.4-12-x",
|
||||
"@polkadot/types-codec": "8.11.4-12-x",
|
||||
"@polkadot/types-create": "8.11.4-12-x",
|
||||
"@polkadot/util": "^9.7.2",
|
||||
"@polkadot/util-crypto": "^9.7.2",
|
||||
"@polkadot/util": "^10.0.1",
|
||||
"@polkadot/util-crypto": "^10.0.1",
|
||||
"rxjs": "^7.5.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/keyring": "^9.7.2",
|
||||
"@polkadot/keyring": "^10.0.1",
|
||||
"@polkadot/types-support": "8.11.4-12-x"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ function decodeString (registry: Registry, value: string): GenericEthereumAccoun
|
||||
|
||||
return decoded.length === 20
|
||||
? registry.createTypeUnsafe('EthereumAccountId', [decoded])
|
||||
: registry.createTypeUnsafe('AccountIndex', [u8aToBn(decoded, true)]);
|
||||
: registry.createTypeUnsafe('AccountIndex', [u8aToBn(decoded)]);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
@@ -23,7 +23,7 @@ function decodeString (registry: Registry, value: string): GenericAccountId | Ge
|
||||
|
||||
return decoded.length === 32
|
||||
? registry.createTypeUnsafe('AccountId', [decoded])
|
||||
: registry.createTypeUnsafe('AccountIndex', [u8aToBn(decoded, true)]);
|
||||
: registry.createTypeUnsafe('AccountIndex', [u8aToBn(decoded)]);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
|
||||
Reference in New Issue
Block a user