fix(voyager/state-gno): template hardcoded core realm in query_packet_by_hash#5476
Merged
cor merged 1 commit intoJun 30, 2026
Merged
Conversation
…_by_hash The second PacketSend filter in query_packet_by_hash hardcoded the realm "gno.land/r/core/ibc/v1/core", while the sibling filter is templated from ibc_core_realm. For any deployment whose IBC core realm differs from that default (e.g. gno.land/r/onbloc/ibc/union/core), the _and over the two filters matches zero events, so packet-by-hash lookups return nothing. Template both pkg_path filters from ibc_core_realm. Assisted-By: Claude (AI agent)
|
@tbruyelle is attempting to deploy a commit to the unionbuild Team on Vercel. A member of the Team first needs to authorize it. |
benluelo
approved these changes
Jun 30, 2026
cor
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
query_packet_by_hashin the gno state module_ands twoPacketSendevent filters (one matched bysource_channel_id, one bypacket_hash). The first filter'spkg_pathis templated fromibc_core_realm, but the second hardcodesgno.land/r/core/ibc/v1/core.For any gno deployment whose IBC core realm differs from that default — e.g. the onbloc port at
gno.land/r/onbloc/ibc/union/core— the second filter matches zero events, the_andyields nothing, andquery_packet_by_hashreturns no transaction.Fix
Template both
pkg_pathfilters fromibc_core_realm(bind it once as aformat!captured identifier, likechannel_id/packet_hashalready are, and drop the now-unused positional arg). Behavioral change is one filter; diff is +4/-4.Notes
gno.land/r/onbloc/ibc/union/coredeployment; withibc_core_realmset to that realm, packet-by-hash lookups resolve correctly after this change.🤖 Disclosure: this PR was prepared by Claude (an AI agent) on behalf of @tbruyelle.