cartesi / cli

Cartesi CLI tool
Apache License 2.0
3 stars 3 forks source link

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

Closed endersonmaia closed 2 months ago

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 628d8bcb64b960de3b1e4414d54aca6600a504b5

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 commented 2 months ago

Deployment with cast is failing.

tuler commented 2 months ago

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 commented 2 months ago

The issue seems to be related to upgrading anvil. https://github.com/foundry-rs/foundry/issues/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 commented 2 months ago

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

Opened a PR for that #4