Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
edit gas peice
Browse files Browse the repository at this point in the history
  • Loading branch information
krboktv committed Feb 17, 2019
1 parent 00ff1c5 commit aa63f48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/js/blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit aa63f48

Please sign in to comment.