From 4a4c25ef5273d179c54e3139b51bc33d8ff330ce Mon Sep 17 00:00:00 2001 From: SonuChoud <128906529+SonuChoud@users.noreply.github.com> Date: Sat, 25 Mar 2023 18:09:19 +0530 Subject: [PATCH 1/3] Create solution-2.md --- solution-2.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 solution-2.md diff --git a/solution-2.md b/solution-2.md new file mode 100644 index 00000000..cf243a17 --- /dev/null +++ b/solution-2.md @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.9; + +import "@openzeppelin/contracts@4.8.2/token/ERC20/ERC20.sol"; + +import "@openzeppelin/contracts@4.8.2/token/ERC20/extensions/ERC20Burnable.sol"; + +import "@openzeppelin/contracts@4.8.2/access/Ownable.sol"; + +contract Sonu is ERC20, ERC20Burnable, Ownable { + + constructor() ERC20("Sonu", "SON") { + _mint(msg.sender, 100000 * 10 ** decimals()); + } + + function mint(address to, uint256 amount) public onlyOwner { + _mint(to, amount); + } +} From 8f1906412eed81bd52e8c5089f12ddabfe227756 Mon Sep 17 00:00:00 2001 From: SonuChoud <128906529+SonuChoud@users.noreply.github.com> Date: Sun, 26 Mar 2023 01:35:57 +0530 Subject: [PATCH 2/3] Create solution-3.md --- solution-3.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 solution-3.md diff --git a/solution-3.md b/solution-3.md new file mode 100644 index 00000000..00364ca1 --- /dev/null +++ b/solution-3.md @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.9; + +import "@openzeppelin/contracts@4.8.2/token/ERC20/ERC20.sol"; +import "@openzeppelin/contracts@4.8.2/token/ERC20/extensions/ERC20Burnable.sol"; +import "@openzeppelin/contracts@4.8.2/access/Ownable.sol"; + +contract Sonu is ERC20, ERC20Burnable, Ownable { + constructor() ERC20("Sonu", "SON") { + _mint(msg.sender, 100000 * 10 ** decimals()); + } + + function mint(address to, uint256 amount) public onlyOwner { + _mint(to, amount); + } +} + +Burned some token +https://testnet-zkevm.polygonscan.com/tx/0x24b662faba9d155d3d183ada601a5e1eeceb331704f5236911d6c2386963df67 +TXN detail - 0x30a7755f65bbbe16ae33c3175023a0fe1172262a +0x24b662faba9d155d3d183ada601a5e1eeceb331704f5236911d6c2386963df67 From adb20af7202c2e38fdbd4a99a8f8a3ce6cc4e4c4 Mon Sep 17 00:00:00 2001 From: Sonu Chad <128906529+SonuChoud@users.noreply.github.com> Date: Sun, 26 Mar 2023 20:33:18 +0530 Subject: [PATCH 3/3] Update solution-3.md --- solution-3.md | 137 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 117 insertions(+), 20 deletions(-) diff --git a/solution-3.md b/solution-3.md index 00364ca1..9348f55e 100644 --- a/solution-3.md +++ b/solution-3.md @@ -1,21 +1,118 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.9; - -import "@openzeppelin/contracts@4.8.2/token/ERC20/ERC20.sol"; -import "@openzeppelin/contracts@4.8.2/token/ERC20/extensions/ERC20Burnable.sol"; -import "@openzeppelin/contracts@4.8.2/access/Ownable.sol"; - -contract Sonu is ERC20, ERC20Burnable, Ownable { - constructor() ERC20("Sonu", "SON") { - _mint(msg.sender, 100000 * 10 ** decimals()); - } - - function mint(address to, uint256 amount) public onlyOwner { - _mint(to, amount); - } -} - -Burned some token -https://testnet-zkevm.polygonscan.com/tx/0x24b662faba9d155d3d183ada601a5e1eeceb331704f5236911d6c2386963df67 -TXN detail - 0x30a7755f65bbbe16ae33c3175023a0fe1172262a + +URL - https://testnet-zkevm.polygonscan.com/tx/0x24b662faba9d155d3d183ada601a5e1eeceb331704f5236911d6c2386963df67 + +Contract Address - 0x30a7755f65bbbe16ae33c3175023a0fe1172262a + 0x24b662faba9d155d3d183ada601a5e1eeceb331704f5236911d6c2386963df67 + + + + +## Code + + + +
+ + + ++ + + + + + +