Skip to content

Instantly share code, notes, and snippets.

@mryellow
Created September 6, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mryellow/2a5609d37a98e5a20d2d5db7bdfc4b30 to your computer and use it in GitHub Desktop.
Save mryellow/2a5609d37a98e5a20d2d5db7bdfc4b30 to your computer and use it in GitHub Desktop.
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