Skip to content

Commit a24cb81

Browse files
committed
tests: Undo accidental change to test contract
1 parent 3aaa7d5 commit a24cb81

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Trigger","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"exampleFunction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"exampleFunction","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"exampleFunction","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]
1+
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"Trigger","type":"event"}]
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
11
pragma solidity ^0.6.1;
22

3-
contract Contract {
4-
event Trigger();
5-
6-
constructor() public {
7-
emit Trigger();
8-
}
93

10-
function exampleFunction(string memory) public pure returns (string memory) {
11-
return "string -> string";
12-
}
13-
14-
function exampleFunction(uint256) public pure returns (string memory) {
15-
return "uint256 -> string";
16-
}
4+
contract Contract {
5+
event Trigger();
176

18-
function exampleFunction(bytes32) public pure returns (uint256) {
19-
return 256;
20-
}
7+
constructor() public {
8+
emit Trigger();
9+
}
2110
}

tests/integration-tests/overloaded-contract-functions/contracts/Contract.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,16 @@ contract Contract {
66
constructor() public {
77
emit Trigger();
88
}
9+
10+
function exampleFunction(string memory) public pure returns (string memory) {
11+
return "string -> string";
12+
}
13+
14+
function exampleFunction(uint256) public pure returns (string memory) {
15+
return "uint256 -> string";
16+
}
17+
18+
function exampleFunction(bytes32) public pure returns (uint256) {
19+
return 256;
20+
}
921
}

0 commit comments

Comments
 (0)