Skip to content

Commit

Permalink
fix(AENS): Fix produceNameId function(Make name lowercase). Enable … (
Browse files Browse the repository at this point in the history
#750)

* fix(AENS): Fix `produceNameId` function(Make name lowercase). Enable spend by name test

* chore(Test): Increase amount of tokens for AENS tests
  • Loading branch information
nduchak committed Nov 11, 2019
1 parent 4c1f5e4 commit fd14225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion es/tx/builder/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export function formatSalt (salt) {
*/
export function produceNameId (name) {
const namespace = R.last(name.split('.'))
if (namespace === 'chain') return encode(hash(name), 'nm')
if (namespace === 'chain') return encode(hash(name.toLowerCase()), 'nm')
return encode(nameHash(name), 'nm')
}

Expand Down
4 changes: 2 additions & 2 deletions test/integration/aens.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function randomString (len, charSet) {
return randomString
}

plan('9000000000000000000000')
plan('99000000000000000000000')

describe('Aens', function () {
configure(this)
Expand Down Expand Up @@ -109,7 +109,7 @@ describe('Aens', function () {
})
})

it.skip('Spend by name', async () => {
it('Spend by name', async () => {
const current = await aens.address()
const onAccount = aens.addresses().find(acc => acc !== current)
await aens.spend(100, name, { onAccount, verify: true })
Expand Down

0 comments on commit fd14225

Please sign in to comment.