This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andres Adjimann
committed
Sep 21, 2022
1 parent
6d0170f
commit e02c536
Showing
4 changed files
with
366 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/chains/ethereum/ethereum/tests/forking/contracts/Logs.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.11; | ||
|
||
contract Logs { | ||
event Event(uint256 indexed first, uint256 indexed second); | ||
|
||
constructor() { | ||
emit Event(1, 2); | ||
} | ||
|
||
function logNTimes(uint8 n) public { | ||
for (uint8 i = 0; i < n; i++) { | ||
emit Event(i, i); | ||
} | ||
} | ||
} |
Oops, something went wrong.