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

Use cartesi/sdk for anvil/devnet at run command #3

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

endersonmaia
Copy link
Contributor

@endersonmaia endersonmaia commented Apr 29, 2024

No description provided.

@endersonmaia endersonmaia requested a review from tuler April 29, 2024 18:58
Copy link

changeset-bot bot commented Apr 29, 2024

🦋 Changeset detected

Latest commit: 628d8bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@endersonmaia endersonmaia self-assigned this Apr 29, 2024
@endersonmaia
Copy link
Contributor Author

Deployment with cast is failing.

@tuler
Copy link
Member

tuler commented Apr 29, 2024

cast actually works for me.

My error is:

ERR Error: StateServerError { source: TonicError { context: "`subscribe_blocks` request", source: Status { code: Unavailable, message: "BlockUnavailable", metadata: MetadataMap { headers: {"content-type": "application/grpc", "date": "Mon, 29 Apr 2024 19:46:27 GMT", "content-length": "0"} }, source: None } } } service=dispatcher

@tuler
Copy link
Member

tuler commented Apr 30, 2024

The issue seems to be related to upgrading anvil.
foundry-rs/foundry#7502
When we load a state the starting block number is 22.
When the node tries to subscribe to a block earlier than that it breaks.

The node team suggested to update the genesis block to 22.
But it's still not working.

Going back to an old anvil version, like the one used by sunodo 0.13.1, works.

@endersonmaia endersonmaia marked this pull request as ready for review April 30, 2024 09:11
@endersonmaia endersonmaia requested a review from tuler April 30, 2024 09:11
@endersonmaia
Copy link
Contributor Author

Going back to an old anvil version, like the one used by sunodo 0.13.1, works.

Opened a PR for that #4

@endersonmaia endersonmaia force-pushed the feat/use-sdk-for-anvil-run branch from 2d1d64e to 43f3745 Compare April 30, 2024 13:25
@tuler tuler changed the title feat(cli): use cartesi/sdk for anvil/devnet at run command Use cartesi/sdk for anvil/devnet at run command Apr 30, 2024
Copy link
Member

@tuler tuler left a comment

Choose a reason for hiding this comment

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

LGTM. Squash fixup

@tuler tuler self-requested a review April 30, 2024 15:36
@endersonmaia endersonmaia force-pushed the feat/use-sdk-for-anvil-run branch from 03c6432 to 628d8bc Compare April 30, 2024 15:58
@endersonmaia endersonmaia merged commit 9e21c32 into main Apr 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants