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

Added Cosmos proto types and MsgDelegate proto #15

Merged
merged 2 commits into from
May 12, 2020
Merged

Added Cosmos proto types and MsgDelegate proto #15

merged 2 commits into from
May 12, 2020

Conversation

shanev
Copy link
Member

@shanev shanev commented May 12, 2020

Fixes #14.

I couldn't figure out how to write a protobuf for MsgPost since it includes MsgDelegate as an embedded type. Anyone know if this is possible? I'm leaving it as a Go type for now.

@shanev shanev self-assigned this May 12, 2020
@shanev shanev changed the title Added Cosmos protobufs and for MsgDelegate Added Cosmos proto types and MsgDelegate proto May 12, 2020
@jhernandezb
Copy link
Member

jhernandezb commented May 12, 2020

Yeah I don't think embedding is actually possible golang/protobuf#192 (comment)

The only work around I see is duplicating fields, its a bit boilerplate but that would make it work, I'm ok duplicating that unless you think there is some methods attached to MsgDelegate that would requite to also be copied to MsgPost ?

@shanev shanev mentioned this pull request May 12, 2020
@shanev shanev merged commit 376197e into master May 12, 2020
@shanev shanev deleted the proto-msgs branch May 12, 2020 14:44
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.

Convert Msgs to protobufs
2 participants