Fix gas calculation

This was such a Go n00b mistake... *blushes*
pull/639/head
Eugene Kim 6 years ago
parent 192d803dfc
commit 82c4ffd2f7
  1. 2
      cmd/client/wallet/main.go

@ -346,7 +346,7 @@ func processTransferCommand() {
amountBigInt := big.NewInt(int64(amount * params.GWei))
amountBigInt = amountBigInt.Mul(amountBigInt, big.NewInt(params.GWei))
gas := params.TxGas
for b := range inputData {
for _, b := range inputData {
if b != 0 {
gas += params.TxDataNonZeroGas
} else {

Loading…
Cancel
Save