Skip to content

Commit a369c88

Browse files
authoredAug 15, 2018
Add chain_getBlock & author_pendingExtrinsics (#132)
* Add chain_getBlock & author_pendingExtrinsics * Remove sample * TSLint
1 parent 5756a7a commit a369c88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+305
-131
lines changed
 

‎packages/api-format/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@babel/runtime": "^7.0.0-beta.51",
3838
"@polkadot/jsonrpc": "^0.28.11",
3939
"@polkadot/primitives": "^0.28.11",
40-
"@polkadot/util": "^0.28.1",
41-
"@polkadot/util-keyring": "^0.28.1"
40+
"@polkadot/util": "^0.28.2",
41+
"@polkadot/util-keyring": "^0.28.2"
4242
}
4343
}

‎packages/api-format/src/output.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import bnDecode from '@polkadot/primitives/json/bn/decode';
1010
import bytesDecode from '@polkadot/primitives/json/bytes/decode';
1111
import hashDecode from '@polkadot/primitives/json/hash/decode';
1212
import headerDecode from '@polkadot/primitives/json/header/decode';
13+
import blockDecode from '@polkadot/primitives/json/block/decode';
1314
import isNull from '@polkadot/util/is/null';
1415
import isUndefined from '@polkadot/util/is/undefined';
1516

@@ -22,6 +23,7 @@ const formatters = new Map<Param$Types, FormatterFunction>([
2223
['Bytes', bytesDecode],
2324
['Hash', hashDecode],
2425
['Header', headerDecode],
26+
['SignedBlock', blockDecode],
2527
['u64', bnDecode]
2628
]);
2729

0 commit comments

Comments
 (0)