Pull in large-value Compact encoding changes (#508)

* Pull in large-value Compact encoding changes

* Update size check
This commit is contained in:
Jaco Greeff
2018-12-21 10:32:11 +01:00
committed by GitHub
parent b4edc31783
commit 900da0c852
7 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -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"
}
}
+3 -3
View File
@@ -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",
+1 -1
View File
@@ -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"
}
}
+3 -3
View File
@@ -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"
}
}
+2 -2
View File
@@ -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"
}
}
+1 -1
View File
@@ -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)]);
});
});