Skip to content

dot/rpc Implement RPC call state_getMetadata #853

Merged
edwardmack merged 5 commits intodevelopmentfrom
ed/rpc_state_getMetadata
May 15, 2020
Merged

dot/rpc Implement RPC call state_getMetadata #853
edwardmack merged 5 commits intodevelopmentfrom
ed/rpc_state_getMetadata

Conversation

@edwardmack
Copy link
Copy Markdown
Contributor

@edwardmack edwardmack commented May 14, 2020

Changes

  • Implement RPC call state_getMetadata which returns the runtime metadata
  • The current runtime has not implemented Metadata_metadata yet, so this will handle the error that is returned.

Tests:

go test ./dot/rpc/...
go test ./lib/runtime/...

Checklist:

  • I have read CONTRIBUTING and CODE_OF_CONDUCT
  • I have provided as much information as possible and necessary
  • I have reviewed my own pull request before requesting a review
  • I have linked any relevant issues in my pull request comments
  • All integration tests and required coverage checks are passing

Issues:

Comment thread dot/rpc/modules/state.go Outdated
Copy link
Copy Markdown
Contributor

@ryanchristo ryanchristo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@edwardmack edwardmack merged commit 54221f9 into development May 15, 2020
@edwardmack edwardmack deleted the ed/rpc_state_getMetadata branch May 15, 2020 14:34
ryanchristo pushed a commit that referenced this pull request Jun 24, 2020
* add runtime test for Metadata_metadata call

* implement RPC state_getMetadata

* add tests

* utilize common.BytesToHex method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants