fix type conversion error

This commit is contained in:
ssallam 2021-01-15 14:50:24 +01:00
parent 36ad30a371
commit c71b4f043c

View File

@ -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