Skip to content

Commit

Permalink
Merge pull request ethereum#263 from nguyenbatam/update_gas_limit_for…
Browse files Browse the repository at this point in the history
…_Tx_randomize

reduce gas limit for Tx randomize
  • Loading branch information
ngtuna authored Nov 8, 2018
2 parents 10c817b + 51792ad commit 884bb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func BuildTxSecretRandomize(nonce uint64, randomizeAddr common.Address, epocNumb
encryptSecret := Encrypt(randomizeKey, new(big.Int).SetInt64(secret).String())
inputData = append(inputData, common.LeftPadBytes([]byte(encryptSecret), int(sizeOfArray))...)
}
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 4200000, big.NewInt(0), inputData)
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 200000, big.NewInt(0), inputData)

return tx, nil
}
Expand All @@ -184,7 +184,7 @@ func BuildTxSecretRandomize(nonce uint64, randomizeAddr common.Address, epocNumb
func BuildTxOpeningRandomize(nonce uint64, randomizeAddr common.Address, randomizeKey []byte) (*types.Transaction, error) {
data := common.Hex2Bytes(common.HexSetOpening)
inputData := append(data, randomizeKey...)
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 4200000, big.NewInt(0), inputData)
tx := types.NewTransaction(nonce, randomizeAddr, big.NewInt(0), 200000, big.NewInt(0), inputData)

return tx, nil
}
Expand Down

0 comments on commit 884bb19

Please sign in to comment.