Created
December 29, 2019 01:55
-
-
Save ryanpedersen42/8f06e87d1b1a13556242455da0b841da to your computer and use it in GitHub Desktop.
addTo3Box
This file contains hidden or 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
addTo3Box = async () => { | |
const { petHash, imageDescription } = this.state; | |
const { user } = this.props; | |
const dappSpace = user.dappSpace; | |
try { | |
await dappSpace.public.set(petHash, imageDescription); | |
} catch(err) { | |
console.err(err); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment