Skip to content

Conversation

mrice32
Copy link
Member

@mrice32 mrice32 commented Aug 10, 2025

No description provided.

@mrice32 mrice32 requested review from gsteenkamp89 and md0x August 10, 2025 00:54
Copy link
Contributor

@md0x md0x left a comment

Choose a reason for hiding this comment

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

Looks good. Just a minor comment.

Copy link
Contributor

@gsteenkamp89 gsteenkamp89 left a comment

Choose a reason for hiding this comment

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

One nit, but looks good!


eventBased: Boolean

lastUpdated: BigInt
Copy link
Contributor

Choose a reason for hiding this comment

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

We could make these non-nullible, if we intialize with BIGINT_ZERO like we do in getOrCreateOptimisticPriceRequest

Suggested change
lastUpdated: BigInt
lastUpdated: BigInt!

request.currency = Bytes.fromI32(0);
request.reward = BIGINT_ZERO;
request.finalFee = BIGINT_ZERO;
request.lastUpdated = BIGINT_ZERO;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we init the rest of the packages to Big_int zero for consistency? Or can we drop it since lastUpdate gets set on every PriceRequested event?

@gsteenkamp89
Copy link
Contributor

@mrice32 I tried to deploy this here and it's failed to sync due to an Unexpected Null error

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.

3 participants