fix another error.

This commit is contained in:
ssallam 2021-01-15 14:52:07 +01:00
parent c71b4f043c
commit 0b04b26efb

View File

@ -233,7 +233,7 @@ export function handleJoinPool(event: LOG_JOIN): void {
return return
} }
const datatoken: Datatoken = const datatoken: Datatoken | null =
poolToken.tokenId != null ? Datatoken.load(poolToken.tokenId) : null poolToken.tokenId != null ? Datatoken.load(poolToken.tokenId) : null
const decimals = const decimals =
datatoken == null ? BigInt.fromI32(18).toI32() : datatoken.decimals datatoken == null ? BigInt.fromI32(18).toI32() : datatoken.decimals