Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience function for getting IPFS data from blockchain objects #123

Open
cag opened this issue May 26, 2018 · 0 comments
Open

Add convenience function for getting IPFS data from blockchain objects #123

cag opened this issue May 26, 2018 · 0 comments

Comments

@cag
Copy link
Contributor

cag commented May 26, 2018

For example, in order to get IPFS from an oracle, you gotta do something like this:

const ipfsBytes = await oracleInstance.ipfsHash()
const buffer = new Buffer(ipfsBytes.slice(2), 'hex')
console.log(buffer.toString())

Thanks @andre-meyer and @collinc97 for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant