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

Code Deduplication & Cleanup #126

Merged
merged 10 commits into from
Sep 30, 2024
Merged

Conversation

0xRigel
Copy link
Contributor

@0xRigel 0xRigel commented Sep 30, 2024

This PR makes changes to the following instructions:

  • vault_transaction_create_from_buffer
  • proposal_cancel_v2

It deduplicates the business logic copied from vault_transaction_create and ProposalVote::ProposalCancel by re-using the respective contexts from those instructions. This is done in favor of copy-pasting the business logic as that introduces unnecessary code bloating.

The result is that vault_transaction_create_from_buffer and proposal_cancel_v2 now call into vault_transaction_create and ProposalVote::ProposalCancel respectively instead of copy-pasting their contents

Copy link

vercel bot commented Sep 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-sdk-typedoc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 30, 2024 9:57am

@0xRigel 0xRigel merged commit 1ae5408 into release Sep 30, 2024
2 checks passed
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.

1 participant