Skip to content

Commit

Permalink
fix state_call (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan authored Dec 5, 2022
1 parent 3c6eff3 commit 67c52e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/substrate/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const handlers: Handlers = {
if (!block) {
return []
}
return block.call(method, data)
return (await block.call(method, data)).result
},
state_subscribeRuntimeVersion: async (context, _params, { subscribe }) => {
let update = (_block: Block) => {}
Expand Down

0 comments on commit 67c52e6

Please sign in to comment.