You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to implement a waitUntil() for test environment:
function waitUntil(time: Date, network, params) {
const targetSlot = params.timeToSlot(BigInt(time.getTime()))
const current = params.liveSlot
const slotsToWait = targetSlot - current;
if (slotsToWait < 1) {
throw new Error(`the indicated time is not in the future`)
}
// console.warn(`waiting ${slotsToWait} until ${time}`);
network.tick(slotsToWait)
}
timeToSlot() fails on params.#raw (it's undefined).
Perhaps the network emulator should genesis at current time as of the call to network.initNetworkParams() (and require that it's still at slot 0)?
The text was updated successfully, but these errors were encountered:
Tried to implement a
waitUntil()
for test environment:timeToSlot()
fails onparams.#raw
(it'sundefined
).Perhaps the network emulator should genesis at current time as of the call to network.initNetworkParams() (and require that it's still at slot 0)?
The text was updated successfully, but these errors were encountered: