mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-17 12:07:09 +00:00
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…
x
Reference in New Issue
Block a user