erc20-vend

Create ERC20 tokens the can be minted by existing ERC20 token balance
Log | Files | Refs

commit 7eeda4e1a02aada756611d74fdba2d257278ac4b
parent 698ca51a0d3db8d7639819f4ef6df9ac4e683aea
Author: lash <dev@holbrook.no>
Date:   Tue,  1 Aug 2023 16:09:01 +0100

Add mint event

Diffstat:
Msolidity/Vend.sol | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/solidity/Vend.sol b/solidity/Vend.sol @@ -22,6 +22,7 @@ contract ERC20Vend { mapping(address => bool) writers; event TokenCreated(uint256 indexed _idx, uint256 indexed _supply, address _token); + event Mint(address indexed _minter, address indexed _beneficiary, address indexed _token, uint256 value); constructor(address _controlToken, uint8 _decimals, bool _mint) { bool r; @@ -87,6 +88,7 @@ contract ERC20Vend { l_contract.mintTo(address(this), supply); } emit TokenCreated(l_idx, supply, l_address); + emit Mint(msg.sender, msg.sender, l_address, supply); return l_address; }