Skip to content

Commit 76e8f0c

Browse files
committed
Refactor emitter contract to use the same contract
1 parent 23648a8 commit 76e8f0c

File tree

4 files changed

+556
-113
lines changed

4 files changed

+556
-113
lines changed

tests/core/contracts/contract_sources/Emitter.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,28 @@ contract Emitter {
7575
else if (which == WhichEvent.LogQuadrupleWithIndex) emit LogQuadrupleWithIndex(arg0, arg1, arg2, arg3);
7676
else revert("Didn't match any allowable event index");
7777
}
78+
7879
function logDynamicArgs(string arg0, string arg1) public {
7980
emit LogDynamicArgs(arg0, arg1);
8081
}
82+
8183
function logListArgs(bytes2[] arg0, bytes2[] arg1) public {
8284
emit LogListArgs(arg0, arg1);
8385
}
86+
8487
function logAddressIndexedArgs(address arg0, address arg1) public {
8588
emit LogAddressIndexed(arg0, arg1);
8689
}
90+
8791
function logAddressNotIndexedArgs(address arg0, address arg1) public {
8892
emit LogAddressNotIndexed(arg0, arg1);
8993
}
94+
95+
function logBytes(bytes v) public {
96+
emit LogBytes(v);
97+
}
98+
99+
function logString(string v) public {
100+
emit LogString(v);
101+
}
90102
}

0 commit comments

Comments
 (0)