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

program: add a sequence check IX #908

Merged
merged 4 commits into from
Mar 7, 2024
Merged

program: add a sequence check IX #908

merged 4 commits into from
Mar 7, 2024

Conversation

farnyser
Copy link
Contributor

@farnyser farnyser commented Mar 7, 2024

This new IX SequenceCheck can be used to avoid having multiple concurrent TX in flight causing unexpected result (multiple borrow for example)

This new IX `SequenceCheck` can be used to avoid having multiple concurrent TX in flight causing unexpected result (multiple borrow for example)
@farnyser farnyser requested a review from ckamm March 7, 2024 09:20
@github-actions github-actions bot added program On-chain program changes client TS client changes labels Mar 7, 2024
})
.instruction();

return await this.sendAndConfirmTransactionForGroup(group, [ix]);
Copy link
Contributor

Choose a reason for hiding this comment

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

this would send a transaction with a single sequenceCheck ix. Instead, make this a function that returns the sequence check instruction, so it can be composed with other ixes.

@farnyser farnyser merged commit 4948356 into dev Mar 7, 2024
25 checks passed
@farnyser farnyser deleted the serge/sequence-check branch March 7, 2024 13:59
ckamm pushed a commit that referenced this pull request Mar 8, 2024
Add a sequence check IX

This new IX `SequenceCheck` can be used to avoid having multiple concurrent TX in flight causing unexpected result (multiple borrow for example)

(cherry picked from commit 4948356)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client TS client changes program On-chain program changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants