Make author_insertKey public arg required (#1366)

* Make author_insertKey public arg required

* Remove blank line

* Build interfaces

* Rename to publicKey
This commit is contained in:
Amaury Martiny
2019-09-04 13:06:11 +02:00
committed by GitHub
parent fbf1f24f99
commit b889e56b34
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,11 +1,11 @@
# 0.91.0-beta.x
- The `getRuntimeVersion` and `subscribeRuntimeVersion` RPCs are now only available on the `rpc.state.*` endpoints. This aligns with the Substrate implementation.
- The `author_insertKey` RPC's last argument `publicKey` is now required, as to reflect Substrate implementation.
- Support for extrinsics with versions that is not in the base Substrate implementation (V1-V3) can now be done by providing an implementation for `ExtrinsicUnknown`
- **Breaking change** SignerPayload is registered and can be overrode now.
- SignerPayload is renamed to SignerPayloadJSON
- SignerPayloadJSON, SignerPayloadRawBase and SignerPayloadRaw are all moved to `@polkadot/types`
# 0.90.1
+1 -1
View File
@@ -10,7 +10,7 @@ import { Codec, IExtrinsic } from '@polkadot/types/types';
export interface RpcInterface {
author: {
insertKey(keyType: Text | string, suri: Text | string, maybePublic?: Bytes | Uint8Array | string): Observable<Bytes>;
insertKey(keyType: Text | string, suri: Text | string, publicKey: Bytes | Uint8Array | string): Observable<Bytes>;
pendingExtrinsics(): Observable<Vec<Extrinsic>>;
removeExtrinsic(bytesOrHash: (ExtrinsicOrHash)[]): Observable<Vec<Hash>>;
rotateKeys(): Observable<Bytes>;
+1 -1
View File
@@ -20,7 +20,7 @@ const insertKey: RpcMethodOpt = {
params: [
createParam('keyType', 'Text'),
createParam('suri', 'Text'),
createParam('maybePublic', 'Bytes', { isOptional: true })
createParam('publicKey', 'Bytes')
],
type: 'Bytes'
};