From b2a20f2147da09a1a4895a3ce3218664220b09eb Mon Sep 17 00:00:00 2001 From: apanizo Date: Tue, 26 Jun 2018 12:29:55 +0200 Subject: [PATCH] Return fixed gas price in testing environment --- src/wallets/ethTransactions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallets/ethTransactions.js b/src/wallets/ethTransactions.js index 72b2ce96..6b121f77 100644 --- a/src/wallets/ethTransactions.js +++ b/src/wallets/ethTransactions.js @@ -35,6 +35,10 @@ export const calculateGasPrice = async () => { : 'https://safe-relay.dev.gnosisdev.com/' */ + if (process.env.NODE_ENV === 'test') { + return '20000000000' + } + const header = new Headers({ 'Access-Control-Allow-Origin': '*', })