mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 02:07:52 +00:00 
			
		
		
		
	Update erc20.go
This commit is contained in:
		
							parent
							
								
									8efd3c3f39
								
							
						
					
					
						commit
						8105408bd1
					
				@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user