Skip to content

Commit

Permalink
Merge pull request #10 from gnoswap-labs/fix/block_time
Browse files Browse the repository at this point in the history
fix: skip 1 block == skip 5 seconds
  • Loading branch information
r3v4s authored Oct 6, 2023
2 parents c3591cf + 8aa702c commit c0a3153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnovm/tests/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ func testPackageInjector(store gno.Store, pn *gno.PackageNode) {

ctx := m.Context.(stdlibs.ExecContext)
ctx.Height += count
ctx.Timestamp += (count * 2) // skip 1 block > skip 2 seconds
ctx.Timestamp += (count * 5) // skip 1 block > skip 5 seconds
m.Context = ctx
},
)
Expand Down

0 comments on commit c0a3153

Please sign in to comment.