Use estimateGas error (as per updated implementation) (#4131)

* Use estimateGas error (as per updated implementation)

* EXCEPTION_ERROR as per #4142
This commit is contained in:
Jaco Greeff
2017-01-12 13:56:37 +01:00
committed by Nicolas Gotchac
parent 311730ea95
commit 389e4e3bc0
6 changed files with 33 additions and 5 deletions

View File

@@ -391,6 +391,10 @@ class DeployContract extends Component {
.then(([gasEst, gas]) => {
this.gasStore.setEstimated(gasEst.toFixed(0));
this.gasStore.setGas(gas.toFixed(0));
})
.catch((error) => {
this.gasStore.setEstimatedError();
console.warn('estimateGas', error);
});
}