Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/api-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"@polkadot/primitives-json": "^0.10.1",
"@polkadot/util": "^0.18.5",
"@polkadot/util": "^0.18.6",
"babel-runtime": "^6.26.0"
}
}
6 changes: 3 additions & 3 deletions packages/api-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"nock": "^9.1.0"
},
"dependencies": {
"@polkadot/util": "^0.18.5",
"@polkadot/util-crypto": "^0.18.5",
"@polkadot/util-keyring": "^0.18.5",
"@polkadot/util": "^0.18.6",
"@polkadot/util-crypto": "^0.18.6",
"@polkadot/util-keyring": "^0.18.6",
"babel-runtime": "^6.26.0",
"isomorphic-fetch": "^2.2.1",
"websocket": "^1.0.25"
Expand Down
9 changes: 6 additions & 3 deletions packages/api-provider/src/mock/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import type { MockState, MockState$Storage } from './types';

const interfaces = require('@polkadot/api-jsonrpc');
const u8aToHex = require('@polkadot/util/u8a/toHex');
const l = require('@polkadot/util/logger')('api-mock');

const SUBSCRIPTIONS = Array.prototype.concat.apply(
Expand All @@ -18,9 +19,11 @@ const SUBSCRIPTIONS = Array.prototype.concat.apply(
);

const REQUESTS = {
'state_getStorage': (storage: MockState$Storage, params: Array<mixed>): Uint8Array => {
// flowlint-next-line unclear-type:off
return storage[((params[0]: any): string)];
'state_getStorage': (storage: MockState$Storage, params: Array<mixed>): string => {
return u8aToHex(
// flowlint-next-line unclear-type:off
storage[((params[0]: any): string)]
);
}
};

Expand Down
2 changes: 1 addition & 1 deletion packages/api-provider/src/mock/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type MockState$Storage = {
};

export type MockState$Requests = {
[string]: (storage: MockState$Storage, params: Array<mixed>) => mixed
[string]: (storage: MockState$Storage, params: Array<mixed>) => string
};

export type MockState = {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@polkadot/api-format": "^0.8.13",
"@polkadot/api-jsonrpc": "^0.8.13",
"@polkadot/api-provider": "^0.8.13",
"@polkadot/util": "^0.18.5",
"@polkadot/util": "^0.18.6",
"babel-runtime": "^6.26.0"
}
}
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@
tweetnacl "^1.0.0"
xxhashjs "^0.2.2"

"@polkadot/util-crypto@^0.18.5":
version "0.18.5"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.18.5.tgz#59574ff59a488ee5640ecf1862638f3b9647ffa7"
"@polkadot/util-crypto@^0.18.6":
version "0.18.6"
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.18.6.tgz#57735d2056d178a3e741ca402ea1ae43267d81f8"
dependencies:
babel-runtime "^6.26.0"
blakejs "^1.1.0"
Expand All @@ -194,12 +194,12 @@
"@polkadot/util-crypto" "^0.18.4"
babel-runtime "^6.26.0"

"@polkadot/util-keyring@^0.18.5":
version "0.18.5"
resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.18.5.tgz#019eb52870974b3fd596ba68347b6c1e09290589"
"@polkadot/util-keyring@^0.18.6":
version "0.18.6"
resolved "https://registry.yarnpkg.com/@polkadot/util-keyring/-/util-keyring-0.18.6.tgz#983b58ac371a5866adcc0469d8c03a24a7a77f06"
dependencies:
"@polkadot/util" "^0.18.5"
"@polkadot/util-crypto" "^0.18.5"
"@polkadot/util" "^0.18.6"
"@polkadot/util-crypto" "^0.18.6"
babel-runtime "^6.26.0"

"@polkadot/util-rlp@^0.18.4":
Expand Down Expand Up @@ -227,9 +227,9 @@
deasync "^0.1.12"
ip-regex "^2.1.0"

"@polkadot/util@^0.18.5":
version "0.18.5"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.18.5.tgz#98c04608fceadaaace765eb44253912edc007651"
"@polkadot/util@^0.18.6":
version "0.18.6"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.18.6.tgz#dd3ea07d67d31de02a154dd54665ce9779a73211"
dependencies:
babel-runtime "^6.26.0"
bn.js "^4.11.8"
Expand Down