Created
September 6, 2018 20:15
-
-
Save mryellow/2a5609d37a98e5a20d2d5db7bdfc4b30 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web3.currentProvider.sendAsync({jsonrpc: '2.0',method: 'evm_increaseTime',params: [1000],id: Date.now()},err1 => {if (!err1) {web3.currentProvider.sendAsync({jsonrpc: '2.0',method: 'evm_mine',id: Date.now() + 1}, (err,res)=>console.log);}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment