Skip to content

fix(sdk): honour update() returning value 0 in getQuote - #279

Open
AnkitSingh411 wants to merge 1 commit into
across-protocol:masterfrom
AnkitSingh411:fix/getquote-value-zero
Open

AnkitSingh411 wants to merge 1 commit into
across-protocol:masterfrom
AnkitSingh411:fix/getquote-value-zero

Conversation

@AnkitSingh411

Copy link
Copy Markdown

getQuote applied an action's update() result with a truthiness check
('if (updated?.value)' / 'if (maybePromise?.value)'), so an update()
that legitimately computed value 0 was ignored and the stale pre-quote
value was encoded into the MulticallHandler message. 0n is a valid
value — compare against undefined instead, in both the async and sync
branches.

getQuote applied an action's update() result with a truthiness check
('if (updated?.value)' / 'if (maybePromise?.value)'), so an update()
that legitimately computed value 0 was ignored and the stale pre-quote
value was encoded into the MulticallHandler message. 0n is a valid
value — compare against undefined instead, in both the async and sync
branches.
@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown

@AnkitSingh411 is attempting to deploy a commit to the UMA Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Nov 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8f5ec0e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@across-protocol/app-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
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.

1 participant