Skip to content

Commit

Permalink
Handle no spaces between quoted records
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Feb 21, 2024
1 parent c9535ae commit 6fc58e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/resolvers/TestExtendedDNSResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ contract('ExtendedDNSResolver', function (accounts) {
expect(result).to.equal(testAddress.toLowerCase())
})

it('handles no spaces between quoted records', async function () {
const name = 'test.test'
const testAddress = '0xfefeFEFeFEFEFEFEFeFefefefefeFEfEfefefEfe'
const result = await resolve(
name,
'addr(bytes32)',
[],
`foo='bar'a[60]=${testAddress}`,
)
expect(result).to.equal(testAddress.toLowerCase())
})

it('works if the record comes after one for another cointype', async function () {
const name = 'test.test'
const testAddress = '0xfefeFEFeFEFEFEFEFeFefefefefeFEfEfefefEfe'
Expand Down

0 comments on commit 6fc58e6

Please sign in to comment.