diff --git a/src/routes/safe/store/actions/createTransaction.js b/src/routes/safe/store/actions/createTransaction.js index a1fe34ca..852df77c 100644 --- a/src/routes/safe/store/actions/createTransaction.js +++ b/src/routes/safe/store/actions/createTransaction.js @@ -41,11 +41,18 @@ const createTransaction = ( } else { tx = await getApprovalTransaction(safeInstance, to, valueInWei, txData, CALL, nonce, from) } + + const sendParams = { + from, + } + + // if not set owner management tests will fail on ganache + if (process.env.NODE_ENV === 'test') { + sendParams.gas = '7000000' + } await tx - .send({ - from, - }) + .send(sendParams) .once('transactionHash', (hash) => { txHash = hash openSnackbar(notifications.BEFORE_EXECUTION_OR_CREATION, 'success') diff --git a/src/routes/safe/store/actions/processTransaction.js b/src/routes/safe/store/actions/processTransaction.js index 5f4f3d99..010d62ef 100644 --- a/src/routes/safe/store/actions/processTransaction.js +++ b/src/routes/safe/store/actions/processTransaction.js @@ -59,10 +59,17 @@ const processTransaction = ( transaction = await getApprovalTransaction(safeInstance, tx.recipient, tx.value, tx.data, CALL, nonce, from) } + const sendParams = { + from, + } + + // if not set owner management tests will fail on ganache + if (process.env.NODE_ENV === 'test') { + sendParams.gas = '7000000' + } + await transaction - .send({ - from, - }) + .send(sendParams) .once('transactionHash', (hash) => { txHash = hash openSnackbar(