Skip to content

Instantly share code, notes, and snippets.

@3esmit
Last active January 27, 2020 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3esmit/a988f0b9bfc9ad033803c0691b5ac647 to your computer and use it in GitHub Desktop.
Save 3esmit/a988f0b9bfc9ad033803c0691b5ac647 to your computer and use it in GitHub Desktop.
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