From 4eeefbf707cc60591590d67e2d945f5c559bbcde Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Fri, 30 Jun 2023 17:30:02 +0300 Subject: [PATCH] Checking if dataToken.publishMarketFeeToken exists --- src/mappings/fixedRateExchange.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mappings/fixedRateExchange.ts b/src/mappings/fixedRateExchange.ts index 6cf8ba7..2d00143 100644 --- a/src/mappings/fixedRateExchange.ts +++ b/src/mappings/fixedRateExchange.ts @@ -264,7 +264,7 @@ export function handlePublishMarketFeeChanged( true ) let feeDecimals = BigInt.fromI32(18).toI32() - if (dataToken) { + if (dataToken.publishMarketFeeToken) { const feeToken = getToken( Address.fromString(dataToken.publishMarketFeeToken!), false