From 069b6bdf05e6353fe09f497c57df5191c36830c0 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 4 May 2023 11:29:52 +0100 Subject: [PATCH] Removing hardcoded 18 decimals --- src/mappings/erc20Templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mappings/erc20Templates.ts b/src/mappings/erc20Templates.ts index 31a5239..a7b9da5 100644 --- a/src/mappings/erc20Templates.ts +++ b/src/mappings/erc20Templates.ts @@ -138,7 +138,7 @@ export function handlePublishMarketFeeChanged( token.publishMarketFeeAddress = event.params.PublishMarketFeeAddress.toHexString() token.publishMarketFeeToken = event.params.PublishMarketFeeToken.toHexString() - let decimals = BigInt.fromI32(18).toI32() + let decimals = BigInt.fromI32(token.decimals).toI32() if ( token.publishMarketFeeToken != '0x0000000000000000000000000000000000000000' ) {