Pull in large-value Compact encoding changes (#508)
* Pull in large-value Compact encoding changes * Update size check
This commit is contained in:
@@ -33,6 +33,6 @@
|
||||
"@polkadot/jsonrpc": "^0.35.1",
|
||||
"@polkadot/rpc-provider": "^0.35.1",
|
||||
"@polkadot/types": "^0.35.1",
|
||||
"@polkadot/util": "^0.33.22"
|
||||
"@polkadot/util": "^0.33.23"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,10 +30,10 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/rpc-provider#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/keyring": "^0.33.22",
|
||||
"@polkadot/keyring": "^0.33.23",
|
||||
"@polkadot/storage": "^0.35.1",
|
||||
"@polkadot/util": "^0.33.22",
|
||||
"@polkadot/util-crypto": "^0.33.22",
|
||||
"@polkadot/util": "^0.33.23",
|
||||
"@polkadot/util-crypto": "^0.33.23",
|
||||
"@types/nock": "^9.3.0",
|
||||
"eventemitter3": "^3.1.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
|
||||
@@ -12,6 +12,6 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/types": "^0.35.1",
|
||||
"@polkadot/util": "^0.33.22"
|
||||
"@polkadot/util": "^0.33.23"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/type-storage#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/keyring": "^0.33.22",
|
||||
"@polkadot/keyring": "^0.33.23",
|
||||
"@polkadot/types": "^0.35.1",
|
||||
"@polkadot/util": "^0.33.22",
|
||||
"@polkadot/util-crypto": "^0.33.22"
|
||||
"@polkadot/util": "^0.33.23",
|
||||
"@polkadot/util-crypto": "^0.33.23"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/keyring": "^0.33.22",
|
||||
"@polkadot/util": "^0.33.22",
|
||||
"@polkadot/keyring": "^0.33.23",
|
||||
"@polkadot/util": "^0.33.23",
|
||||
"core-js": "^2.6.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('Compact', () => {
|
||||
it('decodes from same u32 as u64 encoded value (full, default)', () => {
|
||||
expect(
|
||||
Compact.decodeU8a(new Uint8Array([3, 249, 255, 255, 255]), 64)
|
||||
).toEqual([9, new BN(0xfffffff9)]);
|
||||
).toEqual([5, new BN(0xfffffff9)]);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user