Alias state_getRuntimeVersion (#663)

This commit is contained in:
Jaco Greeff
2019-02-09 07:35:05 +02:00
committed by GitHub
parent fd4cc604dd
commit b960580c4d
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ const getFinalisedHead: RpcMethodOpt = {
};
const getRuntimeVersion: RpcMethodOpt = {
description: 'Get the runtime version',
description: 'Get the runtime version (alias of state_getRuntimeVersion)',
params: [
createParam('hash', 'Hash', { isOptional: true })
],
+9
View File
@@ -54,6 +54,14 @@ const getMetadata: RpcMethodOpt = {
type: 'Metadata'
};
const getRuntimeVersion: RpcMethodOpt = {
description: 'Get the runtime version',
params: [
createParam('hash', 'Hash', { isOptional: true })
],
type: 'RuntimeVersion'
};
const queryStorage: RpcMethodOpt = {
description: 'Query historical storage entries (by key) starting from a start block',
params: [
@@ -93,6 +101,7 @@ export default {
methods: {
call: createMethod(section, 'call', call),
getMetadata: createMethod(section, 'getMetadata', getMetadata),
getRuntimeVersion: createMethod(section, 'getRuntimeVersion', getRuntimeVersion),
getStorage: createMethod(section, 'getStorage', getStorage),
getStorageHash: createMethod(section, 'getStorageHash', getStorageHash),
getStorageSize: createMethod(section, 'getStorageSize', getStorageSize),