Skip to content

feat: first/last valid on SendTransactionParams #292

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joe-p
Copy link
Contributor

@joe-p joe-p commented Jun 21, 2024

Proposed Changes

Simply adds first and last valid to SendTransactionParams

Comment on lines +220 to +224
// @ts-expect-error firstValid is marked as read only
if (sendParams?.firstValid) transaction.firstValid = sendParams.firstValid
// @ts-expect-error lastValid is marked as read only
if (sendParams?.lastValid) transaction.lastValid = sendParams.lastValid

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lempira After merging main (presumably because of SDK version bump) I had to use @ts-expect-error since the fields are marked as read-only but we need to change them

Copy link
Contributor

Choose a reason for hiding this comment

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

Would we still get this if we deep clone the sendParams?

@joe-p joe-p requested a review from lempira April 30, 2025 22:48
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.

3 participants