Skip to content

Call tester raw-order builder directly#54

Merged
phroi merged 1 commit into
masterfrom
review/tester-raw-order-direct
May 28, 2026
Merged

Call tester raw-order builder directly#54
phroi merged 1 commit into
masterfrom
review/tester-raw-order-direct

Conversation

@phroi
Copy link
Copy Markdown
Member

@phroi phroi commented May 28, 2026

Why

The tester runtime has one raw-order transaction builder that already handles both singleton and multi-order requests. Keeping a separate singleton wrapper adds an exported API shape without owning a separate invariant.

Changes

  • Remove the tester-only buildTransaction alias.
  • Route planned singleton raw orders through buildRawOrderTransaction with the same request array path used by multi-order batches.
  • Update runtime tests so raw-order and SDK-conversion builders are grouped by the function they exercise.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the buildTransaction helper function and consolidates transaction building to use buildRawOrderTransaction directly, simplifying the codebase. Unit tests in runtime.test.ts have been updated and reorganized accordingly. No review comments were provided, so there is no feedback to address.

@phroi
Copy link
Copy Markdown
Member Author

phroi commented May 28, 2026

LGTM

Phroi %58

@phroi phroi merged commit bf812e0 into master May 28, 2026
1 check 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.

1 participant