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

Start rework channel query #1620

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Start rework channel query #1620

merged 3 commits into from
Sep 14, 2023

Conversation

alpe
Copy link
Contributor

@alpe alpe commented Sep 12, 2023

Resolves #1597

This may change the result set for list-channel queries when no port is passed.
Before we returned all open channels but now we fallback to the contracts ibc port or return an empty list for non ibc-contracts.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #1620 (177c0a9) into main (09b5008) will increase coverage by 0.06%.
The diff coverage is 100.00%.

❗ Current head 177c0a9 differs from pull request most recent head d5fa278. Consider uploading reports for the commit d5fa278 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1620      +/-   ##
==========================================
+ Coverage   56.59%   56.65%   +0.06%     
==========================================
  Files          64       64              
  Lines        8755     8758       +3     
==========================================
+ Hits         4955     4962       +7     
+ Misses       3414     3411       -3     
+ Partials      386      385       -1     
Files Changed Coverage Δ
x/wasm/keeper/query_plugins.go 85.27% <100.00%> (+0.54%) ⬆️

... and 1 file with indirect coverage changes

@alpe alpe marked this pull request as ready for review September 13, 2023 14:32
@alpe alpe requested a review from pinosu September 13, 2023 14:34
assert: func(t *testing.T, d []byte) {
rsp := unmarshalReflect[wasmvmtypes.ListChannelsResponse](t, d)
assert.Nil(t, rsp.Channels)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

really good tests!

Copy link
Contributor

@pinosu pinosu left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@alpe alpe merged commit e0bfaa5 into main Sep 14, 2023
11 checks passed
@alpe alpe deleted the channel_query branch September 14, 2023 13:10
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.

Bug in IbcQuery::ListChannels implementation when port is unset
2 participants