fix: wallet connection

This commit is contained in:
fernandomg 2020-05-23 11:24:21 -03:00
parent 1742f84b86
commit e9153c54d4
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
//
import { getWeb3 } from 'src/logic/wallets/getWeb3'
//
import { web3ReadOnly } from 'src/logic/wallets/getWeb3'
/**
* Generates a batch request for grouping RPC calls
@ -12,7 +12,7 @@ import { getWeb3 } from 'src/logic/wallets/getWeb3'
* @returns {Promise<[*]>}
*/
const generateBatchRequests = ({ abi, address, batch, context, methods }: any): any => {
const web3 = getWeb3()
const web3 = web3ReadOnly
const contractInstance = new web3.eth.Contract(abi, address)
const localBatch = batch ? null : new web3.BatchRequest()

View File

@ -26,7 +26,7 @@ export const processProviderResponse = (dispatch, provider) => {
addOrUpdateTransactions({
safeAddress,
transactions: transactions.withMutations((list) =>
list.map((tx) => tx.set('status', calculateTransactionStatus(tx, safe, provider.account))),
list.map((tx) => tx.set('status', calculateTransactionStatus(tx, safe, walletRecord.account))),
),
}),
)