Skip to content

Add tests for OwnedResolver#280

Open
subashcs wants to merge 2 commits intoensdomains:devfrom
subashcs:test/owned-resolver-updates
Open

Add tests for OwnedResolver#280
subashcs wants to merge 2 commits intoensdomains:devfrom
subashcs:test/owned-resolver-updates

Conversation

@subashcs
Copy link
Copy Markdown

  • Adds the test cases for OwnedResolver taking reference from the PublicResolver function.
  • Updates the SPDX license for the smart contract as it was throwing a warning while compiling ( check if it is correct)

Fixes #243

Subash Chandra Sapkota added 2 commits September 29, 2023 22:47
This commit adds test case for OwnedResolver and moves the dnsName utility function
in test-utils folder from PublicResolver and renames it nameToHex for sharing with
OwnedResolver
Copy link
Copy Markdown
Member

@Arachnid Arachnid left a comment

Choose a reason for hiding this comment

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

Thanks!

function hexEncodeTXT(keys) {
return '0x' + packet.answer.encode(keys).toString('hex')
}
// resolves to a hexadecimal address from a name
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the purpose of rewriting this instead of using dnsName?

Copy link
Copy Markdown
Author

@subashcs subashcs Nov 1, 2023

Choose a reason for hiding this comment

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

Thanks for the question @Arachnid. Actually, the "dnsName" function is renamed to the "nameToHex" function. Also, I have moved this "nameToHex" function to the utils section for sharing between the newly created TestOwnedResolver and the old TestPublicResolver.

@Hari-Bombon
Copy link
Copy Markdown

@makoto @subashcs I would like to work on this issue

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