From 3eb011b98f810f88ef26f4ccea56527237ae05bb Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 11 Mar 2020 10:15:34 -0300 Subject: [PATCH] processTransaction: add gasLimit in development (#657) --- src/routes/safe/store/actions/processTransaction.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/routes/safe/store/actions/processTransaction.js b/src/routes/safe/store/actions/processTransaction.js index 60e87ee3..d7682348 100644 --- a/src/routes/safe/store/actions/processTransaction.js +++ b/src/routes/safe/store/actions/processTransaction.js @@ -82,6 +82,12 @@ const processTransaction = ({ transaction = isExecution ? await getExecutionTransaction(txArgs) : await getApprovalTransaction(txArgs) const sendParams = { from, value: 0 } + + // TODO find a better solution for this in dev and production. + if (process.env.REACT_APP_ENV !== 'production') { + sendParams.gasLimit = 1000000 + } + // if not set owner management tests will fail on ganache if (process.env.NODE_ENV === 'test') { sendParams.gas = '7000000'