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

Phase::Finalization and Phase::Initialization events silently ignored #288

Closed
kylezs opened this issue Jul 16, 2021 · 3 comments
Closed

Comments

@kylezs
Copy link
Contributor

kylezs commented Jul 16, 2021

In subscription.rs there is this line:

if let Phase::ApplyExtrinsic(i) = phase {

And then there is no else. for the other event phases.

Took me a while to work out why I wasn't seeing some events being read from our chain, and it's because of this line.

Why are the Phase::Finalized and Phase::Initialization events ignored?

@kylezs kylezs changed the title Phase::Finalization and Phase::Initialization silently ignored Phase::Finalization and Phase::Initialization events silently ignored Jul 16, 2021
@kylezs
Copy link
Contributor Author

kylezs commented Jul 19, 2021

Just noticed there's this PR open: #283
Though doesn't look the diff actually does anything to solve the issue

@sander2
Copy link
Contributor

sander2 commented Oct 17, 2021

Just noticed there's this PR open: #283 Though doesn't look the diff actually does anything to solve the issue

It does address it: notice that self.events.push_back(event); is performed outside of the if let Phase::ApplyExtrinsic(i) = phase {

@jsdw
Copy link
Collaborator

jsdw commented Dec 1, 2021

I believe that this is now closed by #321, so I'll close this for now (please feel free to re-open if I'm mistaken)

@jsdw jsdw closed this as completed Dec 1, 2021
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

No branches or pull requests

3 participants