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

Hubble cannot index non custom wasm events #3915

Open
0xLaurenzo opened this issue Mar 3, 2025 · 0 comments · May be fixed by #3917
Open

Hubble cannot index non custom wasm events #3915

0xLaurenzo opened this issue Mar 3, 2025 · 0 comments · May be fixed by #3917
Assignees
Labels
A-hubble Area: Our Hubble chain indexer

Comments

@0xLaurenzo
Copy link

0xLaurenzo commented Mar 3, 2025

Hubble can only index custom events from cosmwasm and is unable to index attributes emitted by a default wasm event. This is caused by this comparison

const TYPE_WASM_PREFIX: &str = "wasm-";

// emitted for brevity

if !event_type.starts_with(TYPE_WASM_PREFIX)

This can already be solved by either changing the comparison to something like

const TYPE_WASM_PREFIX: &str = "wasm-";
const TYPE_WASM_EVENT: &str = "wasm";
// emitted for brevity

if !event_type.starts_with(TYPE_WASM_PREFIX) && !event_type == TYPE_WASM_EVENT

or by changing the wasm prefix like so

const TYPE_WASM_PREFIX: &str = "wasm";
// emitted for brevity

if !event_type.starts_with(TYPE_WASM_PREFIX)
@0xLaurenzo 0xLaurenzo linked a pull request Mar 3, 2025 that will close this issue
@KaiserKarel KaiserKarel added the A-hubble Area: Our Hubble chain indexer label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-hubble Area: Our Hubble chain indexer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants