MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / advanceBlock

Function advanceBlock

test/helpers/time.js:5–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3// See https://github.com/ethereumjs/testrpc#implemented-methods
4
5async function advanceBlock() {
6 return new Promise((resolve, reject) => {
7 web3.currentProvider.send({
8 jsonrpc: '2.0',
9 method: 'evm_mine',
10 },
11 (err, result) => {
12 if (err) {
13 return reject(err);
14 }
15 resolve(result.result);
16 }
17 );
18 });
19}
20
21// Increases ganache time by the passed duration in seconds
22async function increaseTime(duration) {

Callers 2

increaseTimeFunction · 0.85
jumpToTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected