Skip to content

Conversation

leoyvens
Copy link
Collaborator

Part of graphprotocol/graph-node#1120.

In addition to the contract calls we already generate, we'll generate a version prefixed with try_ that returns a CallResult<T> allowing the mapping to handle failures. See graph-ts PR graphprotocol/graph-ts#74.

@leoyvens leoyvens requested review from Jannis and fordN August 28, 2019 13:58
@leoyvens
Copy link
Collaborator Author

graph-ts PR needs to be merged for tests to pass.

Copy link
Contributor

@Jannis Jannis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have a cosmetic comment, but maybe that's just me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section might be easier to read if there was just one top-level isTry-based conditional rather than a few spread across the nested logic.

@leoyvens
Copy link
Collaborator Author

leoyvens commented Sep 2, 2019

@Jannis you're right, we can collapse the conditionals, thanks!

@leoyvens leoyvens force-pushed the leo/expose-reverts-to-mappings branch from 4f53951 to 72aab67 Compare September 2, 2019 16:25
@leoyvens leoyvens merged commit 81a5a6f into master Sep 2, 2019
@leoyvens leoyvens deleted the leo/expose-reverts-to-mappings branch September 2, 2019 20:00
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

Successfully merging this pull request may close these issues.

2 participants