Skip to content

Commit

Permalink
Refactor emitter contract to use the same contract
Browse files Browse the repository at this point in the history
  • Loading branch information
kclowes committed Jun 13, 2019
1 parent 23648a8 commit 76e8f0c
Show file tree
Hide file tree
Showing 4 changed files with 556 additions and 113 deletions.
12 changes: 12 additions & 0 deletions tests/core/contracts/contract_sources/Emitter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,28 @@ contract Emitter {
else if (which == WhichEvent.LogQuadrupleWithIndex) emit LogQuadrupleWithIndex(arg0, arg1, arg2, arg3);
else revert("Didn't match any allowable event index");
}

function logDynamicArgs(string arg0, string arg1) public {
emit LogDynamicArgs(arg0, arg1);
}

function logListArgs(bytes2[] arg0, bytes2[] arg1) public {
emit LogListArgs(arg0, arg1);
}

function logAddressIndexedArgs(address arg0, address arg1) public {
emit LogAddressIndexed(arg0, arg1);
}

function logAddressNotIndexedArgs(address arg0, address arg1) public {
emit LogAddressNotIndexed(arg0, arg1);
}

function logBytes(bytes v) public {
emit LogBytes(v);
}

function logString(string v) public {
emit LogString(v);
}
}
Loading

0 comments on commit 76e8f0c

Please sign in to comment.