Skip to content

TypeError: Member "isContract" not found or not visible after argument-dependent lookup in address. #383

@x5engine

Description

@x5engine

Using isContract causes an issue compiling the wrapper!

TypeError: Member "isContract" not found or not visible after argument-dependent lookup in address.
--> .deps/npm/@ensdomains/ens-contracts/contracts/wrapper/ERC1155Fuse.sol:344:13:
|
344 | if (to.isContract()) {
| ^^^^^^^^^^^^^

if (to.isContract()) {

Also it is not advisable to use it at all but use tx.origin

https://despac1to.medium.com/carefully-use-openzeppelins-address-iscontract-msg-sender-4136cc6ff66d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions