mirror of https://github.com/embarklabs/embark.git
increase estimated gas slightly & randomly
This commit is contained in:
parent
2374cb1641
commit
44dad44ef4
|
@ -257,7 +257,8 @@ class ContractDeployer {
|
|||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
contract.gas = gasValue;
|
||||
let increase_per = 1 + (Math.random() / 10.0)
|
||||
contract.gas = Math.floor(gasValue * increase_per);
|
||||
next();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue