fix: wallet connection
This commit is contained in:
parent
1742f84b86
commit
e9153c54d4
|
@ -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()
|
||||
|
||||
|
|
|
@ -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))),
|
||||
),
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue