From c7202eeae724783f572232a1d80b6b9082ee90b1 Mon Sep 17 00:00:00 2001 From: owen05 Date: Fri, 11 Jun 2021 11:38:27 +0800 Subject: [PATCH] update erc20V2Facotry event --- contracts/Factory/ERC20V2Factory.sol | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contracts/Factory/ERC20V2Factory.sol b/contracts/Factory/ERC20V2Factory.sol index 594b5e0..1de61d3 100644 --- a/contracts/Factory/ERC20V2Factory.sol +++ b/contracts/Factory/ERC20V2Factory.sol @@ -49,7 +49,7 @@ contract ERC20V2Factory is InitializableOwnable { address public _CUSTOM_ERC20_TEMPLATE_; // ============ Events ============ - // 0 Std 1 Custom + // 0 Std 1 TradeBurn or TradeFee 2 Mintable event NewERC20(address erc20, address creator, uint256 erc20Type); // ============ Registry ============ @@ -106,7 +106,10 @@ contract ERC20V2Factory is InitializableOwnable { ); _USER_CUSTOM_REGISTRY_[msg.sender].push(newCustomERC20); - emit NewERC20(newCustomERC20, msg.sender, 1); + if(isMintable) + emit NewERC20(newCustomERC20, msg.sender, 2); + else + emit NewERC20(newCustomERC20, msg.sender, 1); }