Skip to content

fix: serialize state in error cases #40

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

Open
wants to merge 5 commits into
base: na/catalyst-types
Choose a base branch
from

Conversation

nadim-az
Copy link
Collaborator

No description provided.

@@ -167,12 +168,34 @@ func (a *Activity) RunLoadTest(ctx context.Context, chainState []byte,

chain, err := chain.RestoreChain(ctx, logger, p, chainState, node.RestoreNode, testnet.CosmosWalletConfig)
if err != nil {
return PackagedState{}, err
newProviderState, serializeErr := p.SerializeProvider(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we extract this out into a function? where we serialize as much as possible and just return it

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