Skip to content

Commit 68436ec

Browse files
mmsqealjo242
andauthored
fix: allow value with slashes when query token_pairs (#509)
* chore: allow value with slashes when query token_pairs * add doc --------- Co-authored-by: Alex | Interchain Labs <[email protected]>
1 parent bcc17d4 commit 68436ec

File tree

5 files changed

+62
-61
lines changed

5 files changed

+62
-61
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
- [\#471](https://github.com/cosmos/evm/pull/471) Notify new block for mempool in time.
1010
- [\#492](https://github.com/cosmos/evm/pull/492) Duplicate case switch to avoid empty execution block
11+
- [\#509](https://github.com/cosmos/evm/pull/509) Allow value with slashes when query token_pairs.
1112

1213
### IMPROVEMENTS
1314

api/cosmos/evm/erc20/v1/query.pulsar.go

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/cosmos/evm/erc20/v1/query.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ service Query {
2020

2121
// TokenPair retrieves a registered token pair (mapping)
2222
rpc TokenPair(QueryTokenPairRequest) returns (QueryTokenPairResponse) {
23-
option (google.api.http).get = "/cosmos/evm/erc20/v1/token_pairs/{token}";
23+
option (google.api.http).get = "/cosmos/evm/erc20/v1/token_pairs/{token=**}";
2424
}
2525

2626
// Params retrieves the erc20 module params

x/erc20/types/query.pb.go

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x/erc20/types/query.pb.gw.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)