Skip to main content

Questions tagged [erc165]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
17 views

Interface id of ERC4337 smart contract acccount

Has the community already agreed on a way to identify an ERC4337-compliant smart contract wallet? For example, using ERC165? What would be the interface Id for it since only one of the 2 function ...
Oscar Serna's user avatar
2 votes
0 answers
23 views

How to verify that a SC implements an interface. Considering the parameters that are returned

The Ethereum ecosystem has an ERC165 standard that allows you to check whether a contract implements an interface. But this standard is based only on the method name and input params and not return ...
batya's user avatar
  • 121
2 votes
2 answers
502 views

restrict the NFTs of my contract (ERC721) to be traded on marketplaces?

Are there tricks in solidity to prevent the NFTs minted by an ERC721 contract to be (a) not recognizable and (b) not being transferable by marketplaces like OpenSea, SuperRare. I see those possible ...
Majd TL's user avatar
  • 3,237
1 vote
0 answers
42 views

Use of a "primitive" function in a contract

A solidity amateur here. I have a deeper question. Let's say we have a IERC721 contract. And in the beginning of this contract we have the following code: interface IERC721 is IERC165 { /** * @dev ...
NFT_king's user avatar
0 votes
1 answer
43 views

What to do if a contract does not support ERC165?

I have this code... try IERC165(_token.assetContract).supportsInterface(0x80ac58cd) returns (bool supported721) { require(!supported721, "!TokenType"); ...
Falcon Stakepool's user avatar
1 vote
1 answer
235 views

Error with supportsInterface function (ERC165)

I have this function: /// @dev Checks if the type of asset-contract is same as the TokenType specified. function _checkTokenType(Token memory _token) internal view { if (_token.tokenType == ...
Falcon Stakepool's user avatar
1 vote
1 answer
45 views

Why did ERC165 adopt XOR?

Why did ERC165 adopt XOR among the many bitwise operators?
ttt's user avatar
  • 107
2 votes
1 answer
70 views

Confused about the ERC721 implementation

This is the function, openzeppelin is using to check the ERC721recieve interface. What is the purpose of having ERC165 when we are checking the implemented interface by this method??
Zartaj Afser's user avatar
  • 4,484
0 votes
1 answer
694 views

Calculate the ERC165 interfaceId of any contract type manually

I have a contract whose interface has been registered using ERC165 Within solidity, it's easy to retrieve the interfaceId for any contract type by doing type({registeredInterface}).interfaceId But ...
Fast Ackl's user avatar
0 votes
2 answers
336 views

Function selector collision in ERC165

Like we know that the receiver contract can provide the confirmation of the implemented interfaces by comparing the interface indentifier and function selector of implemented interfaces. What could go ...
CaptPython's user avatar
0 votes
1 answer
29 views

Wrong implementation of ERC165 by receiver

My understanding about ERC165 is that if a contract had implemented ERC165 then the sender contract can check for the supported interface before initiating the tx with the receiver contract address. ...
CaptPython's user avatar