Setting block timestamp not reflecting timestamp inside Fuel VM

I’m running into the same problem @buddy-brontosaurus had here:

I can use the SDK to set block timestamps, and this works normally if I query from Rust using provider.get_blocks.

However, when I call the following code in my Sway contract:

    fn get_time() -> u64 {
        timestamp()
    }

…it returns the current time, (4611686020106380522), not the custom time that I tried to specify.

1 Like