小编Sar*_*ati的帖子

Hardhat 无法 console.log msg.data

fallback() external {
        console.log(msg.data);  
        (bool result, ) = address(delegate).delegatecall(msg.data);
        if (result) {
            console.log("SUCESS");
            this;
        }
}
Run Code Online (Sandbox Code Playgroud)

回报

TypeError: Member "log" not found or not visible after argument-dependent lookup in type(library console).
        console.log(msg.data);
        ^---------^
Run Code Online (Sandbox Code Playgroud)

console.logged 的​​数据类型是否有限制?参数依赖查找到底意味着什么?

ethereum solidity hardhat

6
推荐指数
1
解决办法
5264
查看次数

标签 统计

ethereum ×1

hardhat ×1

solidity ×1