LiteSVM / litesvm

Apache License 2.0
68 stars 11 forks source link

Add warp_to_slot #25

Closed kevinheavey closed 5 months ago

kevinheavey commented 5 months ago

This is just a convenience wrapper around set_sysvar<Clock> but it exists in solana-program-test so it's nice to have here

kevinheavey commented 5 months ago

Oh I see we already have set_slot which is a better name anyway. I'll just clean that up

kevinheavey commented 5 months ago

Ok I changed my mind about the name because we'll also want to add warp_to_epoch as in solana-program-test, and that method should definitely be called warp_to_epoch not set_epoch. So for consistency I prefer warp_to_slot