Update erc20.go

This commit is contained in:
VolodymyrBg 2025-03-09 21:50:08 +02:00 committed by GitHub
parent 8efd3c3f39
commit 8105408bd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}