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(() => {
|
||||
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>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user