()
| 3 | // See https://github.com/ethereumjs/testrpc#implemented-methods |
| 4 | |
| 5 | async 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 |
| 22 | async function increaseTime(duration) { |
no outgoing calls
no test coverage detected