diff --git a/frontend/src/js/blockchain.js b/frontend/src/js/blockchain.js index fe5bc5a..ce79601 100644 --- a/frontend/src/js/blockchain.js +++ b/frontend/src/js/blockchain.js @@ -79,8 +79,8 @@ async function signTransaction(privateKey, to, value, data, gas = []) { value: _values[i], from: addresses[i], data: data, - gasPrice: tbn(await web3.eth.getGasPrice()).times(1.3).integerValue().toNumber() ? tbn(await web3.eth.getGasPrice()).times(1.3).integerValue().toNumber() : 210000000*3, - gas: gas[i] ? gas[i] : 56000 + gasPrice: tbn(await window.web3.eth.getGasPrice()).times(1.5).integerValue().toNumber() ? tbn(await window.web3.eth.getGasPrice()).times(1.3).integerValue().toNumber() : 210000000*3, + gas: gas[i] ? gas[i] : 21000 }; const tx = new ethereumjs.Tx(txParam); const privateKeyBuffer = ethereumjs.Buffer.Buffer.from(_privateKeys[i].substring(2), 'hex');