Replies: 1 comment 7 replies
-
evm_increaseTime: Jumps forward in time. Takes one parameter, which is the amount of time to increase in seconds. (Refer https://gist.github.com/mds1/0a3a2fbaa08474bb1317d1f4b1f6d514) evm_mine: Force a block to be mined. Takes no parameters. Mines a block independent of whether or not mining is started or stopped. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I'm currently in lesson-9
15:44:09
.I can't able to get a clear understanding of these two lines of code.
Can somebodyhelp me answering my questions below
--> When should we need to use those special testing methods?
--> What does that syntax for those two lines mean?(
network.provider.send
)--> Why to initialize interval as a string instead of initializing as a number?
--> Why to add
1
to the interval([interval.toNumber() +1]
)?--> What is the need of mining a new block! isin't it possible to test without using
evm_mine
?I didn't worked with ganache earlier. So answering these questions would be great help...
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions