Removing hardcoded 18 decimals

This commit is contained in:
Jamie Hewitt 2023-05-04 11:29:52 +01:00
parent e30047c430
commit 069b6bdf05
1 changed files with 1 additions and 1 deletions

View File

@ -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'
) {