Created
June 24, 2019 06:17
-
-
Save 0GiS0/be882570af6610cff1c0300473cbaee9 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
async (error, transactionHash) => { | |
if (error) { | |
console.log(`error: ${error}`); | |
} | |
else { | |
console.log(`transaction hash: ${transactionHash}`); | |
let receipt = await web3.eth.getTransactionReceipt(transactionHash); | |
console.log('Contract address: ' + receipt.contractAddress); | |
let contractDeployed = new web3.eth.Contract(abi, receipt.contractAddress); | |
contractDeployed.methods.Register.send({ from: creatorAccount }, (err, data) => { | |
if (err) { | |
console.log(`error: ${err}`); | |
return; | |
} | |
contractDeployed.methods.Register.send({ from: creatorAccount }, (err, data) => { | |
if (err) { | |
console.log(`error: ${err}`); | |
return; | |
} | |
contractDeployed.methods.GetMyRegistries.call({ from: creatorAccount }, (err, data) => { | |
console.log(data); | |
console.log(data.toString()); | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment