Created
October 16, 2019 18:13
-
-
Save sebastinez/4d6839401356fe19a924968087357b42 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
var web3 = new Web3(); | |
web3.setProvider(new web3.providers.HttpProvider("http://localhost:8545")); | |
accounts = web3.eth.getAccounts().then(accounts => { | |
var resolverABI = fs.readFileSync("./resolver.json").toString(); | |
const resolver = new Resolver(web3.currentProvider, "0xdd4f83fd3fd37f96b4f4019d4de7387363fc1534", resolverABI); | |
resolver.setAddr("foo.rsk", accounts[0], accounts[1]).then(result => console.log(result)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment