Hardhat cannot console.log msg.data

Viewed 2590
fallback() external {
        console.log(msg.data);  
        (bool result, ) = address(delegate).delegatecall(msg.data);
        if (result) {
            console.log("SUCESS");
            this;
        }
}

returns

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

is there a restriction on what kind of data that can be console.logged? what does argument-dependent lookup even mean?

1 Answers
Related