-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: main
Are you sure you want to change the base?
Conversation
// @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 | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
?
Proposed Changes
Simply adds first and last valid to SendTransactionParams