Solidity stack traces no working in localhost-network
Minimal reproduction steps
solidity version: 0.8.24
contract:
pragma solidity ^0.8.24;
import 'hardhat/console.sol';
contract TestToken {
constructor() {}
function method1(uint32 a, uint32 b) private pure returns (uint32) {
return method2(a, b);
}
function method2(uint32 a, uint32 b) private pure returns (uint32) {
require(a + b < 100, '====error!!!!====');
return a + b;
}
function add(uint32 a, uint32 b) public payable returns (uint32) {
console.log('====exec add!!!====');
return method1(a, b);
}
}
when i run: npx hardhat my-task --network hardhat
Terminal display:
when i run: npx hardhat my-task --network localhost
Version of Hardhat
2.22.6
What happened?
Solidity stack traces no working in localhost-network
Minimal reproduction steps
solidity version: 0.8.24
contract:
when i run:
npx hardhat my-task --network hardhat
Terminal display:
when i run:
npx hardhat my-task --network localhost
Terminal display:
Search terms
No response