From 575e63b89481c5e9232144529f7eb0d915e1a652 Mon Sep 17 00:00:00 2001 From: MestryOmkar Date: Fri, 9 Nov 2018 11:05:14 +0530 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 fd6615e4de..b2d8b42cc8 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -164,7 +164,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 } @@ -173,7 +173,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 }