diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol index 8532998479..d7ca835499 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol +++ b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/c.sol @@ -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; } } diff --git a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json index f1248a5ab2..7822845fe4 100644 --- a/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json +++ b/packages/hardhat-core/test/internal/hardhat-network/stack-traces/test-files/0_8/user-defined-value-types/test.json @@ -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 + } + ] } ] }