Skip to content

Instantly share code, notes, and snippets.

@ryanpedersen42
Created December 29, 2019 01:55
Show Gist options
  • Save ryanpedersen42/8f06e87d1b1a13556242455da0b841da to your computer and use it in GitHub Desktop.
Save ryanpedersen42/8f06e87d1b1a13556242455da0b841da to your computer and use it in GitHub Desktop.
addTo3Box
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