processTransaction: add gasLimit in development (#657)
This commit is contained in:
parent
97343670f6
commit
3eb011b98f
|
@ -82,6 +82,12 @@ const processTransaction = ({
|
||||||
transaction = isExecution ? await getExecutionTransaction(txArgs) : await getApprovalTransaction(txArgs)
|
transaction = isExecution ? await getExecutionTransaction(txArgs) : await getApprovalTransaction(txArgs)
|
||||||
|
|
||||||
const sendParams = { from, value: 0 }
|
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 not set owner management tests will fail on ganache
|
||||||
if (process.env.NODE_ENV === 'test') {
|
if (process.env.NODE_ENV === 'test') {
|
||||||
sendParams.gas = '7000000'
|
sendParams.gas = '7000000'
|
||||||
|
|
Loading…
Reference in New Issue