Created
July 11, 2017 21:02
-
-
Save brynbellomy/af8bd641bf30441cabb948599a73b2ee to your computer and use it in GitHub Desktop.
medium-return-struct-public-func-2.js
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
// we're assuming we have a typical Truffle setup here | |
const Project = artifacts.require('./Project.sol'); | |
const project = await Project.deployed() | |
const person = await project.people('0xdeadbeef') | |
console.log('person =', person); | |
// this should print something like this: | |
// person = [ 'Bryn', 123 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment