Skip to content

Commit

Permalink
Test UserDefinedValueType via revert, not console
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Nov 3, 2021
1 parent 2ffe626 commit bb31030
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type UFixed is uint256;

contract C {
function f(UFixed a) public returns (UFixed b) {
console.log("something");
require(false, "error reason");
b = a;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@
"to": 0,
"function": "f",
"params": [1],
"consoleLogs": [["something"]]
"stackTrace": [
{
"type": "REVERT_ERROR",
"sourceReference": {
"function": "f",
"contract": "C",
"file": "c.sol",
"line": 9,
"range": [164, 194]
},
"message": "error reason",
"isInvalidOpcodeError": false
}
]
}
]
}

0 comments on commit bb31030

Please sign in to comment.