Vite migration - #302
Merged
Merged
Conversation
…sues - parking for now until anchor catches up with solana
impact nft update failure does not block unlock
… and client fixes
The issue: After upgrading Anchor/Solana libraries, the mainnet report was failing with "Invalid account discriminator" errors. This was because: 1. Marinade's on-chain state account is named "State" with discriminator [216, 146, 107, 94, 104, 75, 182, 177] 2. Anchor's declare_program\! renames it to "MarinadeState" to avoid conflicts with our "State" 3. This changes the expected discriminator, causing mismatches with on-chain accounts The solution: - Use UncheckedAccount for all marinade_state fields in instructions - Created deserialize_marinade_state() utility that checks for the correct on-chain discriminator - Added comprehensive comments explaining why this approach is necessary - Maintained our State struct name for backward compatibility This allows the program to work with existing on-chain Marinade accounts while avoiding naming conflicts between the two programs.
- Upgrade from Rust 1.80.0 to 1.82.0 for latest stable features - Add rustfmt and clippy components to ensure they're available in CI - Fixes lint-program job failures due to missing rustfmt
- Allow deprecated items to suppress Borsh version warnings - Prefix unused stake_amount variable with underscore - Remove unused authorize_stake_pool method - Remove unused gsol_mint_authority field from MetadataAccounts - Fix doc comment indentation - Remove unused import All changes are safe and don't affect program functionality.
Remove extra blank line to pass cargo fmt check
Fix deprecated GitHub Actions artifact upload action
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.