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

fix: include machine kind in machine events #83

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

sanderpick
Copy link
Member

So downstream tools can filter on machine kind.

Copy link
Member Author

Choose a reason for hiding this comment

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

kind is indexed so you can filter on it from viem / other libs

Copy link
Contributor

@dtbuchholz dtbuchholz left a comment

Choose a reason for hiding this comment

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

lgtm. @sanderpick will the new testnet reflect these changes? or should i use the existing event MachineInitialized(address machineAddress) that's emitted?

we're going to publish the js packages whenever the new testnet is up, so i wanna make sure they use the correct one.

@sanderpick
Copy link
Member Author

this will have to wait until the next reset

@sanderpick sanderpick merged commit 5759b36 into main Feb 19, 2025
7 checks passed
@sanderpick sanderpick deleted the sander/better-machine-events branch February 19, 2025 01:49
sanderpick added a commit to recallnet/ipc that referenced this pull request Feb 19, 2025
Turns out I forgot that the `MachineState` trait has a method `kind()`
that returns the underlying state's `Kind`. So, this is easy.

Depends on recallnet/contracts#83

Signed-off-by: Sander Pick <[email protected]>
islamaliev pushed a commit to recallnet/ipc that referenced this pull request Feb 21, 2025
Turns out I forgot that the `MachineState` trait has a method `kind()`
that returns the underlying state's `Kind`. So, this is easy.

Depends on recallnet/contracts#83

Signed-off-by: Sander Pick <[email protected]>
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.

2 participants