processTransaction: add gasLimit in development (#657)

This commit is contained in:
nicolas 2020-03-11 10:15:34 -03:00 committed by GitHub
parent 97343670f6
commit 3eb011b98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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'