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:
committed by
Nicolas Gotchac
parent
311730ea95
commit
389e4e3bc0
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -155,8 +155,7 @@ class ExecuteContract extends Component {
|
||||
}
|
||||
|
||||
return (
|
||||
<Warning
|
||||
warning={ errorEstimated } />
|
||||
<Warning warning={ errorEstimated } />
|
||||
);
|
||||
}
|
||||
|
||||
@@ -378,6 +377,7 @@ class ExecuteContract extends Component {
|
||||
this.gasStore.setGas(gas.toFixed(0));
|
||||
})
|
||||
.catch((error) => {
|
||||
this.gasStore.setEstimatedError();
|
||||
console.warn('estimateGas', error);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -357,6 +357,7 @@ export default class TransferStore {
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
this.gasStore.setEstimatedError();
|
||||
console.warn('etimateGas', error);
|
||||
this.recalculate(redo);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user