From 49fd0fda9e407471b3866521b4a142cd85e49506 Mon Sep 17 00:00:00 2001 From: naz_dou <41945483+nduchak@users.noreply.github.com> Date: Wed, 18 Sep 2019 18:15:25 +0200 Subject: [PATCH] feat(AENS): Add ability to use contract (#671) * feat(AENS): Add ability to use contract * feat(AENS): Add ability to use state-channel --- es/ae/aens.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/es/ae/aens.js b/es/ae/aens.js index b375306cc7..9419d5febb 100644 --- a/es/ae/aens.js +++ b/es/ae/aens.js @@ -85,7 +85,9 @@ async function revoke (nameId, options = {}) { function classify (s) { const keys = { ak: 'account_pubkey', - ok: 'oracle_pubkey' + ok: 'oracle_pubkey', + ct: 'contract_pubkey', + ch: 'channel' } if (!s.match(/^[a-z]{2}_.+/)) {