-
Notifications
You must be signed in to change notification settings - Fork 48
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
fix!: fix third party proto files #1207
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1207 +/- ##
=======================================
Coverage 80.49% 80.49%
=======================================
Files 218 218
Lines 18289 18289
=======================================
Hits 14722 14722
Misses 2955 2955
Partials 612 612 ☔ View full report in Codecov by Sentry. |
@@ -3,7 +3,7 @@ | |||
set -eo pipefail | |||
|
|||
cd proto | |||
proto_dirs=$(find ./desmos -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) | |||
proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace to .
in order to make sure oracle
and ethermint
protos be generated.
CRYPTO_TYPES = types/crypto | ||
|
||
update-deps-types: | ||
@mkdir -p $(CRYPTO_TYPES)/ethsecp256k1 | ||
@curl -sSL $(EVMOS_URL)/ethsecp256k1/keys.pb.go > $(CRYPTO_TYPES)/ethsecp256k1/keys.pb.go | ||
@curl -sSL $(EVMOS_URL)/ethsecp256k1/ethsecp256k1.go > $(CRYPTO_TYPES)/ethsecp256k1/ethsecp256k1.go | ||
@curl -sSL $(EVMOS_URL)/proto/ethermint/crypto/v1/ethsecp256k1/keys.proto > proto/ethermint/crypto/v1/ethsecp256k1/keys.proto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of copy pb.go file directly, it is better to download proto file then generate the pb.go file with the specified proto builder which cosmos sdk applies, in order to avoid from the marshaling/unmarshaling issue.
Description
This PR fixes the oracle proto files to be generated by proto builder applied by cosmos v0.47.x, in order to make sure packet unmarshaling work properly when receiving IBC packets from Band Protocol.
It also updates the third party ethscep256k1 proto to prevent from the potential issue about marshaling/unmarshaling.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change