Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contract implementation for multiple contenthash records #30

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

filips123
Copy link

@filips123 filips123 commented Feb 18, 2020

This PR adds implementation for multiple contenthash records on same ENS domain. It is part of new EIP (that extends the EIP 1577) that I'm writing.

Draft EIP is available in ethereum/EIPs#2520, and discussion should be in ethereum/EIPs#2393.

@@ -453,6 +453,27 @@ contract('PublicResolver', function (accounts) {
null
);
});

it('can set specific contenthash type', async () => {
await resolver.setContenthash(node, '0x0100000000000000000000000000000000000000000000000000000000000001', '0x01', {from: accounts[0]});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@filips123 Apologies for looking over your shoulder, was reading the EIP and saw a note there about the unit tests. In truffle overloaded methods can be accessed via a methods key with their ABI sig.

An example from these tests is calling resolver.setAddr(node, accounts[1], {from: accounts[0]}) as:

await resolver.methods['setAddr(bytes32,address)'](node, accounts[1], {from: accounts[0]});

Co-Authored-By: cgewecke <[email protected]>
@decanus
Copy link
Contributor

decanus commented Feb 26, 2020

@filips123 I think it may make sense to have 2 seperate resolvers. @Arachnid what do you think?

@filips123
Copy link
Author

Separate resolvers in what sense? Because I think it is easier to just have one.

MicahZoltu pushed a commit to ethereum/EIPs that referenced this pull request Nov 2, 2020
This adds my draft EIP for multiple contenthash records for ENS. Contract implementation is available in ensdomains/resolvers#30, and discussion should be in #2393.
Arachnid pushed a commit to Arachnid/EIPs that referenced this pull request Mar 6, 2021
This adds my draft EIP for multiple contenthash records for ENS. Contract implementation is available in ensdomains/resolvers#30, and discussion should be in ethereum#2393.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants