mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
debug output
This commit is contained in:
parent
b6574dcbb3
commit
f1f2123466
@ -8,13 +8,19 @@ export default function PoolTransactions(): ReactElement {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getLogs() {
|
async function getLogs() {
|
||||||
|
if (!ocean || !accountId) return
|
||||||
|
|
||||||
const logs = await ocean.pool.getAllPoolLogs(accountId)
|
const logs = await ocean.pool.getAllPoolLogs(accountId)
|
||||||
setLogs(logs)
|
setLogs(logs)
|
||||||
}
|
}
|
||||||
getLogs()
|
getLogs()
|
||||||
}, [ocean, accountId])
|
}, [ocean, accountId])
|
||||||
|
|
||||||
logs && console.log(logs)
|
return (
|
||||||
|
<div>
|
||||||
return <div>Hello</div>
|
<pre>
|
||||||
|
<code>{JSON.stringify(logs, null, 2)}</code>
|
||||||
|
</pre>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user