Skip to content

Instantly share code, notes, and snippets.

@DanielVF
Created September 28, 2018 11:36
Show Gist options
  • Select an option

  • Save DanielVF/f8858aa812bff3b3165e4fcc009f6675 to your computer and use it in GitHub Desktop.

Select an option

Save DanielVF/f8858aa812bff3b3165e4fcc009f6675 to your computer and use it in GitHub Desktop.
Get origin contract address JSON from an origin DAPP
out = {}
for (const k in originTest.contractService.contracts) {
out[k] = {4: {address:originTest.contractService.contracts[k].networks[4].address}}
}
JSON.stringify(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment