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

Ensure IBC Proto Registration #7210

Merged
merged 14 commits into from
Sep 1, 2020
Merged

Ensure IBC Proto Registration #7210

merged 14 commits into from
Sep 1, 2020

Conversation

jackzampolin
Copy link
Member

There are a number of missing proto registrations in the IBC module currently. This PR fixes that issue.

@codecov
Copy link

codecov bot commented Aug 31, 2020

Codecov Report

Merging #7210 into master will increase coverage by 0.07%.
The diff coverage is 91.54%.

@@            Coverage Diff             @@
##           master    #7210      +/-   ##
==========================================
+ Coverage   54.91%   54.98%   +0.07%     
==========================================
  Files         562      562              
  Lines       38623    38680      +57     
==========================================
+ Hits        21210    21270      +60     
+ Misses      15666    15663       -3     
  Partials     1747     1747              

@jackzampolin jackzampolin changed the base branch from master to bez/7202-fix-auto-gas August 31, 2020 18:32
@jackzampolin jackzampolin changed the base branch from bez/7202-fix-auto-gas to master August 31, 2020 22:54
@jackzampolin jackzampolin changed the base branch from master to bez/7202-fix-auto-gas August 31, 2020 22:56
@jackzampolin jackzampolin changed the base branch from bez/7202-fix-auto-gas to master August 31, 2020 22:57
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK, thanks @jackzampolin

@colin-axner
Copy link
Contributor

colin-axner commented Sep 1, 2020

Did these cause errors when not being registered? I was under the impression only types being used as an Any needed to be registered as per InterfaceRegistry godoc

// InterfaceRegistry provides a mechanism for registering interfaces and
// implementations that can be safely unpacked from Any

or maybe there is another use case?

Only the tendermint msgs and header should have been necessary to register (but this is already fixed on master)

@fedekunze
Copy link
Collaborator

@jackzampolin can you check if your issue is resolved on master?

client/tx/tx.go Outdated Show resolved Hide resolved
@fedekunze fedekunze added the A:automerge Automatically merge PR once all prerequisites pass. label Sep 1, 2020
@mergify mergify bot merged commit 7d64086 into master Sep 1, 2020
@mergify mergify bot deleted the jack/ibc-proto branch September 1, 2020 20:59
@@ -256,7 +256,7 @@ func BuildSimTx(txf Factory, msgs ...sdk.Msg) ([]byte, error) {
// sentinel pubkey.
sig := signing.SignatureV2{
Data: &signing.SingleSignatureData{
SignMode: txf.signMode,
SignMode: txf.WithSignMode(signing.SignMode_SIGN_MODE_LEGACY_AMINO_JSON).signMode,
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this is suspicious to set SIGN_MODE_LEGACY_AMINO. I thought simulation was switched over to SIGN_MODE_DIRECT

Copy link
Member Author

Choose a reason for hiding this comment

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

This is specifically for the gas simulation. I don't think it makes a huge difference but not 100% sure

Copy link
Contributor

@amaury1093 amaury1093 Sep 2, 2020

Choose a reason for hiding this comment

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

Yeah, signatures aren't verified in simulation mode, so I believe it doesn't make a difference.

Anyways, it's reverted here, to make it cleaner: https://github.com/cosmos/cosmos-sdk/pull/7207/files#diff-df9cc9b2c6d08e86dbf0554ea3adb00aR259

Copy link
Member Author

@jackzampolin jackzampolin Sep 2, 2020

Choose a reason for hiding this comment

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

This was causing a test to fail but maybe we fixed it another way 🤷‍♂️ fine with reverting and thank you @amaurymartiny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants