我在炼金术节点上运行一个契约,如何看到console.log()的输出?( console.log()输出不会出现在我通过hardhat运行js脚本的终端上。我正在上炼金术)
import "hardhat/console.sol";
contract BookStore {
function hello() external {
console.log("hello");}
}发布于 2023-01-14 16:58:45
日志将显示在您的硬帽子节点正在运行的终端中。
编辑:哦,我的错,你在高丽。Console.log()是一个开发特性,在任何活动网络上都是不可用的,您需要使用一个草帽本地网络来使用它。
https://ethereum.stackexchange.com/questions/142941
复制相似问题