-
-
Save MichalZalecki/c762ca055db7702f9b6e58a0cedc227d to your computer and use it in GitHub Desktop.
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
BlogEvents.getPastEvents("PostAdded", { fromBlock: 0, filter: { author } }).then(events => { | |
this.setState({ addedPosts: events.map(e => e.returnValues) }); | |
}); | |
// ... | |
getPost(gatewayIndex = 0) { | |
this.fetchPostFromIpfs(gateways[gatewayIndex]) | |
.catch(() => this.retry(gatewayIndex)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment