From 8105408bd1ab59ab14dfeedbda15ce82efcc5b67 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 9 Mar 2025 21:50:08 +0200 Subject: [PATCH] Update erc20.go --- x/evmutil/keeper/erc20.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/x/evmutil/keeper/erc20.go b/x/evmutil/keeper/erc20.go index bbca64a1..609934c2 100644 --- a/x/evmutil/keeper/erc20.go +++ b/x/evmutil/keeper/erc20.go @@ -134,7 +134,12 @@ func (k *Keeper) GetOrDeployCosmosCoinERC20Contract( // register the contract to the module store err = k.SetDeployedCosmosCoinContract(ctx, tokenInfo.CosmosDenom, contractAddress) - // TODO: emit event that contract was deployed + // Emit event that contract was deployed + ctx.EventManager().EmitEvent(sdk.NewEvent( + types.EventTypeDeployedCosmosCoinContract, + sdk.NewAttribute(types.AttributeKeyCosmosDenom, tokenInfo.CosmosDenom), + sdk.NewAttribute(types.AttributeKeyContractAddress, contractAddress.String()), + )) return contractAddress, err }