github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/auto/EmitLog.sol (about) 1 // SPDX-License-Identifier: GPL-3.0 2 3 pragma solidity >=0.7.0 <0.9.0; 4 5 contract EmitLog { 6 event Log(); 7 event LogA(uint256 indexed a); 8 event LogAB(uint256 indexed a, uint256 indexed b); 9 event LogABC(uint256 indexed a, uint256 indexed b, uint256 indexed c); 10 event LogABCD(uint256 indexed a, uint256 indexed b, uint256 indexed c, uint256 d); 11 12 function emitLogs() public { 13 emit Log(); 14 emit LogA(1); 15 emit LogAB(1, 2); 16 emit LogABC(1, 2, 3); 17 emit LogABCD(1, 2, 3, 4); 18 emit LogABCD(4, 3, 2, 1); 19 emit LogABC(3, 2, 1); 20 emit LogAB(2, 1); 21 emit LogA(1); 22 emit Log(); 23 } 24 }