Closed nicolaslara closed 11 months ago
Ref: https://github.com/osmosis-labs/osmosis/issues/5960
Historical wasm queries depend on the block timestamp being available on the queryContext (https://github.com/osmosis-labs/wasmd/blob/master/x/wasm/types/types.go#L273-L277). The timestamp is added to the context in https://github.com/osmosis-labs/cosmos-sdk/blob/osmosis-main/baseapp/abci.go#L685-L693, but that doesn't work on 0.45 because the timestamp is never stored.
This PR fixes that.
Store the timestamp in the RootMultiStore like it's done in the latest version of the SDK
all tests should pass
Unreleased
CHANGELOG.md
x/<module>/spec/
Ref: https://github.com/osmosis-labs/osmosis/issues/5960
What is the purpose of the change
Historical wasm queries depend on the block timestamp being available on the queryContext (https://github.com/osmosis-labs/wasmd/blob/master/x/wasm/types/types.go#L273-L277). The timestamp is added to the context in https://github.com/osmosis-labs/cosmos-sdk/blob/osmosis-main/baseapp/abci.go#L685-L693, but that doesn't work on 0.45 because the timestamp is never stored.
This PR fixes that.
Brief Changelog
Store the timestamp in the RootMultiStore like it's done in the latest version of the SDK
Testing and Verifying
all tests should pass
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (yes / no)x/<module>/spec/
) / Osmosis docs repo / not documented)