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

Clock counter contract does not update its state after EndBlock #5

Open
ducphamle2 opened this issue Sep 11, 2024 · 2 comments
Open

Comments

@ducphamle2
Copy link
Collaborator

It seems the network could not find or call the EndBlock function of the x/clock module, causing the contract state to stay still

@ducphamle2
Copy link
Collaborator Author

After debugging, I discovered that the EndBlock function signature was changed:

image image

After switching ctx to context.Context, and retrieved sdk.Context via: sdkCtx := sdk.UnwrapSDKContext(ctx), the bug was fixed

@ducphamle2
Copy link
Collaborator Author

fixed in #2

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

1 participant