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
Labels
bug Something isn't working

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

@ducphamle2 ducphamle2 added this to the Upgrade Oraichain to 0.50 milestone Oct 30, 2024
@ducphamle2 ducphamle2 added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant