Skip to content

Commit

Permalink
chore: add an explanation for block setting
Browse files Browse the repository at this point in the history
Signed-off-by: 170210 <[email protected]>
  • Loading branch information
170210 committed Aug 18, 2023
1 parent ebdd924 commit e5240a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/wasm/keeper/querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func TestQueryContractsByCode(t *testing.T) {
return contractAddr
}

// related link: https://github.com/CosmWasm/wasmd/issues/1559
// When not set with a block, the contract will return results based on the order of address rather than instantiation (timestamp).
// Since this function will test results for pagination, it is necessary to ensure that the results are returned in the order of instantiation.
// manage some realistic block settings
meter := sdk.NewGasMeter(1000000)
ctx = ctx.WithGasMeter(meter)
Expand Down

0 comments on commit e5240a6

Please sign in to comment.