Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane committed Nov 25, 2024
1 parent 0f21381 commit feb8da1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/state/transactions/updater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export default function Updater(): null {
const { mixpanelHandler, subgraphMixpanelHandler } = useMixpanel()
const transactionNotify = useTransactionNotify()

const abc = async (hash: string): Promise<void> => {
const tx = await appsSdk.txs.getBySafeTxHash(hash)
console.log('tx', tx)
}

useEffect(() => {
if (!readProvider || !lastBlockNumber) return
console.log('connector', connector)
Expand Down Expand Up @@ -128,16 +133,9 @@ export default function Updater(): null {
})
.catch(console.warn)

console.log('connector?.id', connector?.id)
console.log(CONNECTION.SAFE_CONNECTOR_ID)

console.log(connector?.id === CONNECTION.SAFE_CONNECTOR_ID)

if (connector?.id === CONNECTION.SAFE_CONNECTOR_ID) {
console.log(1)
appsSdk.txs.getBySafeTxHash(hash).then(tx => {
console.log('tx', tx)
})
abc(hash)
} else {
console.log(2)
readProvider
Expand Down

0 comments on commit feb8da1

Please sign in to comment.