fix race condition
This commit is contained in:
parent
f04745e3d3
commit
9140afc573
|
@ -214,12 +214,12 @@ exports.increaseTime = async (amount) => {
|
|||
params: [+amount],
|
||||
id: new Date().getSeconds()
|
||||
},
|
||||
(error) => {
|
||||
async (error) => {
|
||||
if (error) {
|
||||
console.log(error);
|
||||
return reject(err);
|
||||
}
|
||||
web3.currentProvider.sendAsync(
|
||||
await web3.currentProvider.sendAsync(
|
||||
{
|
||||
jsonrpc: '2.0',
|
||||
method: 'evm_mine',
|
||||
|
|
Loading…
Reference in New Issue