Return fixed gas price in testing environment

This commit is contained in:
apanizo 2018-06-26 12:29:55 +02:00
parent bd6b9c4f9e
commit b2a20f2147

View File

@ -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': '*',
})