Skip to content

fix(composite-client): use of undefined variable#396

Draft
UnbornAztecKing wants to merge 3 commits intomainfrom
mattweeks/fix-js-client
Draft

fix(composite-client): use of undefined variable#396
UnbornAztecKing wants to merge 3 commits intomainfrom
mattweeks/fix-js-client

Conversation

@UnbornAztecKing
Copy link

@UnbornAztecKing UnbornAztecKing commented Jul 25, 2025

FIXING MORE TYPESCRIPT ERRORS...

CompositeClient.signPlaceOrder made use of wallet, which is undefined, instead of subaccount.wallet

The package rules for typescript compilation and linting did not catch this bug and must be fixed in a separate change.

Changelist:

  • fix reference to subaccount.wallet
  • add marketInfo and currentHeight to signPlaceOrder to permit avoiding round-trips to indexer and validator for potentially known information, and align with the placeOrder API

placeOrder exposes parameters for marketInfo and blockHeight, to avoid querying indexer and validator
add parameters to signPlaceOrder to permit avoiding these queries if the information is available
@UnbornAztecKing UnbornAztecKing requested a review from a team as a code owner July 25, 2025 18:28
@UnbornAztecKing UnbornAztecKing marked this pull request as draft July 25, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant