diff --git a/js/src/dapps/signaturereg/services.js b/js/src/dapps/signaturereg/services.js index 09c2c201195..3963d394c7f 100644 --- a/js/src/dapps/signaturereg/services.js +++ b/js/src/dapps/signaturereg/services.js @@ -167,6 +167,7 @@ export function postRegister (instance, id, options = {}) { .estimateGas(options, [id]) .then((gas) => { options.gas = gas.mul(1.2).toFixed(0); + console.log('postRegister', `gas estimated at ${gas.toFormat(0)}, setting to ${gas.mul(1.2).toFormat(0)}`); instance.register.postTransaction(options, [id]); }); } diff --git a/js/src/modals/Transfer/transfer.js b/js/src/modals/Transfer/transfer.js index fe983f840a3..f14048203f4 100644 --- a/js/src/modals/Transfer/transfer.js +++ b/js/src/modals/Transfer/transfer.js @@ -468,12 +468,10 @@ export default class Transfer extends Component { _estimateGasEth () { const { api } = this.context; const { account } = this.props; - const { data, gas, gasPrice, recipient, value } = this.state; + const { data, recipient, value } = this.state; const options = { from: account.address, to: recipient, - gas, - gasPrice, value: api.util.toWei(value || 0) };