mirror of
https://github.com/oceanprotocol/ocean-subgraph.git
synced 2024-12-02 05:57:29 +01:00
fix type conversion error
This commit is contained in:
parent
36ad30a371
commit
c71b4f043c
@ -278,7 +278,7 @@ export function handleExitPool(event: LOG_EXIT): void {
|
||||
return
|
||||
}
|
||||
|
||||
const datatoken: Datatoken =
|
||||
const datatoken: Datatoken | null =
|
||||
poolToken.tokenId != null ? Datatoken.load(poolToken.tokenId) : null
|
||||
const decimals =
|
||||
datatoken == null ? BigInt.fromI32(18).toI32() : datatoken.decimals
|
||||
|
Loading…
Reference in New Issue
Block a user