From 51792adf19f3e7a9390ba5633e0c5ebb43a81f12 Mon Sep 17 00:00:00 2001 From: Nguyen Ba Tam Date: Tue, 6 Nov 2018 15:12:02 +0700 Subject: [PATCH] reduce gas limit for Tx randomize --- contracts/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/utils.go b/contracts/utils.go index 0d9a6f9a9e..eb3694bf0e 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -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 } @@ -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 }