WA-521 Disabling metamask signatures feature

This commit is contained in:
apanizo 2018-08-22 16:27:54 +02:00
parent cd91609380
commit 306099ff89
4 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@ const devConfig = {
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
[SIGNATURES_VIA_METAMASK]: true,
[SIGNATURES_VIA_METAMASK]: false,
}
export default devConfig

View File

@ -10,7 +10,7 @@ const prodConfig = {
[TX_SERVICE_HOST]: 'https://safe-transaction-history.dev.gnosisdev.com/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
[SIGNATURES_VIA_METAMASK]: true,
[SIGNATURES_VIA_METAMASK]: false,
}
export default prodConfig

View File

@ -10,7 +10,7 @@ const testConfig = {
[TX_SERVICE_HOST]: 'http://localhost:8000/api/v1/',
[ENABLED_TX_SERVICE_MODULES]: false,
[ENABLED_TX_SERVICE_REMOVAL_SENDER]: false,
[SIGNATURES_VIA_METAMASK]: true,
[SIGNATURES_VIA_METAMASK]: false,
}
export default testConfig

View File

@ -12,6 +12,7 @@ import { promisify } from '~/utils/promisify'
import { getWeb3 } from '~/logic/wallets/getWeb3'
import { safeTransactionsSelector } from '~/routes/safe/store/selectors'
import fetchSafe from '~/routes/safe/store/actions/fetchSafe'
import { signaturesViaMetamask } from '~/config'
import { testTransactionFrom, testSizeOfTransactions } from './utils/historyServiceHelper'
@ -34,7 +35,7 @@ describe('Transactions Suite', () => {
const gnosisSafe = await getSafeEthereumInstance(safeAddress)
const firstTxData = gnosisSafe.contract.addOwnerWithThreshold.getData(accounts[1], 2)
const executor = accounts[0]
const nonce = Date.now()
const nonce = signaturesViaMetamask() ? await gnosisSafe.nonce() : Date.now()
const firstTxHash = await createTransaction(safe, 'Add Owner Second account', safeAddress, 0, nonce, executor, firstTxData)
await store.dispatch(fetchSafe(safe))
safe = getSafeFrom(store.getState(), safeAddress)