Skip to content

fix(sdk): mark the signature step item as failed when the check fails - #1175

Merged
pedromcunha-uneven merged 1 commit into
relayprotocol:mainfrom
erkancamli:fix/sdk-signature-check-failure-status
Nov 9, 2026
Merged

pedromcunha-uneven merged 1 commit into
relayprotocol:mainfrom
erkancamli:fix/sdk-signature-check-failure-status

Conversation

@erkancamli

Copy link
Copy Markdown
Contributor

Follow-up to @pedromcunha-uneven's review on #1144: the failure branch of the signature step status check now sets stepItem.checkStatus = 'failure' before throwing, like the refund branch next to it and the websocket handler (websocketHandlers.ts) do. Before, the item kept pending (or no status) after the step had failed.

Tests in signatureStep.test.ts:

  • "Should fail right away with the failure details from the check." now also expects checkStatus to be failure.
  • "Should not report pending after polling has failed." expected undefined after a failure; it now expects failure (the Hyperliquid hash lookup that resolves afterwards still leaves it alone).

Both fail without the change and pass with it. The SDK suite passes (103 tests), prettier and the changeset lint are clean.

The refund branch sets checkStatus to refund before throwing, like the
transaction and websocket paths do for their final statuses. The failure
branch threw without setting it, so the item kept pending (or no status)
after the step failed.
@vercel

vercel Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

@erkancamli is attempting to deploy a commit to the Uneven Labs Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Records checkStatus = 'failure' before a failed signature check throws.

  • Failed signature checks now mark the step item as failed.

Reviews (1) · Last reviewed commit: "fix(sdk): mark the signature step item a..." · Reviewed by Greptile

@pedromcunha-uneven
pedromcunha-uneven merged commit 1d64f9a into relayprotocol:main Nov 9, 2026
5 of 8 checks passed
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