Skip to content

Commit 59eff98

Browse files
committed
fix logic
1 parent dfb59ae commit 59eff98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mappings/erc20Templates.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ export function handlePublishMarketFeeChanged(
8989
if (
9090
token.publishMarketFeeToken !=
9191
'0x0000000000000000000000000000000000000000'
92-
)
92+
){
93+
const token = getToken(event.params.PublishMarketFeeToken.toHexString())
9394
decimals = BigInt.fromI32(token.decimals).toI32()
95+
}
9496
token.publishMarketFeeAmmount = weiToDecimal(
9597
event.params.PublishMarketFeeAmount.toBigDecimal(),
9698
decimals

0 commit comments

Comments
 (0)