fix another error.

This commit is contained in:
ssallam 2021-01-15 14:52:07 +01:00
parent c71b4f043c
commit 0b04b26efb
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ export function handleJoinPool(event: LOG_JOIN): 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