-
Notifications
You must be signed in to change notification settings - Fork 53
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
base: master
Are you sure you want to change the base?
Add contract implementation for multiple contenthash records #30
Conversation
test/TestPublicResolver.js
Outdated
@@ -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]}); |
There was a problem hiding this comment.
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:
resolvers/test/TestPublicResolver.js
Line 126 in 8958e4f
await resolver.methods['setAddr(bytes32,address)'](node, accounts[1], {from: accounts[0]}); |
Co-Authored-By: cgewecke <[email protected]>
@filips123 I think it may make sense to have 2 seperate resolvers. @Arachnid what do you think? |
Separate resolvers in what sense? Because I think it is easier to just have one. |
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.
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.
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.