Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return txid as orderId for DEX swaps when calling approve() #332

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Jun 21, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

One optional change.

@@ -160,6 +160,10 @@ export async function makeSwapPluginQuote(
savedAction.orderUri = `${savedAction.orderUri}${tx.txid}`
}

if (quoteId == null && (swapInfo.isDex ?? false)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doing (swapInfo.isDex === true) also avoids the lint error, but makes more sense when you read it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agreed, will fix

@peachbits peachbits force-pushed the matthew/txidAsOrderId branch from 37cdf77 to 7e587c4 Compare June 24, 2024 23:11
@peachbits peachbits enabled auto-merge June 24, 2024 23:11
@peachbits peachbits merged commit d76b02b into master Jun 24, 2024
1 check passed
@peachbits peachbits deleted the matthew/txidAsOrderId branch June 24, 2024 23:14
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