Squads-Protocol / v4

Squads V4
https://v4-sdk-typedoc.vercel.app
GNU Affero General Public License v3.0
89 stars 33 forks source link

Code Deduplication & Cleanup #126

Closed 0xRigel closed 1 month ago

0xRigel commented 1 month ago

This PR makes changes to the following instructions:

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

vercel[bot] commented 1 month ago

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