Last active
January 27, 2020 21:01
-
-
Save 3esmit/a988f0b9bfc9ad033803c0691b5ac647 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EmbarkJS = require('Embark/EmbarkJS'); | |
const MultisigRecovery = require('Embark/contracts/MultisigRecovery') | |
config({ | |
namesystem: { | |
enabled: true, | |
available_providers: ["ens"], | |
provider: "ens", | |
register: { | |
rootDomain: "eth", | |
subdomains: { | |
'embark': '0x1a2f3b98e434c02363f3dac3174af93c1d690914' | |
} | |
} | |
}, | |
contracts: { | |
deploy: { | |
"MultisigRecovery": { | |
args: [ "$ENSRegistry" ] | |
} | |
} | |
} | |
}, (_err, web3_accounts) => { | |
accounts = web3_accounts; | |
}); | |
contract('SecretMultisigRecovery', function () { | |
describe('ENS test', function () { | |
it('ENS resolve', async function () { | |
console.log('ensregistry address', await MultisigRecovery.methods.ens().call()) | |
let address = await EmbarkJS.Names.resolve('embark.eth') | |
console.log('ENS address', address); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment