Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow raw hex-bytes as input for struct types #97

Open
arjanz opened this issue Apr 15, 2021 · 0 comments
Open

Allow raw hex-bytes as input for struct types #97

arjanz opened this issue Apr 15, 2021 · 0 comments

Comments

@arjanz
Copy link
Member

arjanz commented Apr 15, 2021

Now to encode a struct type it requires a dict with elements according to its specification. For example the session key struct:

{'grandpa': '0x...', 'babe': '0x...', 'im_online': '0x...', 'authority_discovery': '0x...', 'parachains': '0x...'}

following its definition https://github.com/polkascan/py-scale-codec/blob/v0.10.77/scalecodec/type_registry/default.json#L2340

It should also be possible to allow raw hex-bytes as input, so it would be possible to enter the output of a author_rotateKeys RPC call.

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

No branches or pull requests

1 participant