xpladev / xpla

XPLA Chain core implementation
https://xpla.io
Apache License 2.0
23 stars 7 forks source link

fix: auto-set block timestamp for historical queries #104

Closed JoowonYun closed 10 months ago

JoowonYun commented 10 months ago

Effects

Major Reviewer

@leeyunseon

Background

When querying the state of CosmWasm, timestamp is the current time.

Summary

This change automatically set's the block time on the Context that is provided to all queries. It does this by querying for the CommitInfo for that particular version/height from the RMS.

Checklist