Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.