oraichain / wasmd

Basic cosmos-sdk app with web assembly smart contracts
Other
3 stars 9 forks source link

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

Open ducphamle2 opened 1 month ago

ducphamle2 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

fixed in #2