1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

debug output

This commit is contained in:
Matthias Kretschmann 2020-09-29 17:14:25 +02:00
parent b6574dcbb3
commit f1f2123466
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -8,13 +8,19 @@ export default function PoolTransactions(): ReactElement {
useEffect(() => {
async function getLogs() {
if (!ocean || !accountId) return
const logs = await ocean.pool.getAllPoolLogs(accountId)
setLogs(logs)
}
getLogs()
}, [ocean, accountId])
logs && console.log(logs)
return <div>Hello</div>
return (
<div>
<pre>
<code>{JSON.stringify(logs, null, 2)}</code>
</pre>
</div>
)
}