fix race condition

This commit is contained in:
Ricardo Guilherme Schmidt 2018-05-25 18:54:35 -03:00
parent f04745e3d3
commit 9140afc573
1 changed files with 2 additions and 2 deletions

View File

@ -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',