Fixed broken tests and cleanup#26
Merged
Merged
Conversation
c8c6260 to
6fce6ed
Compare
- Cargo.lock removed from .gitignore (previous recommendation to not check in Cargo.lock for libraries has changed) - Deploy non-upgradable program is no longer supported (solana-labs/solana#34424) - deploy_program function was kept for backwards compatibility but now uses upgradable loader) - Fixed outdate processor macro. Also now it is possible to use this macro with new anchor entrypoint function. - Updated structure of the new Pyth Oracle price account. - Replaced various deprecated functions and structs with new equivalents. - Fixed most of the compiler warnings. - Bumped dependencies versions. - Fixed create_associated_token_account to work with spl_token_2022::ID as suggested in [PR#23](#23). - Fixed add_empty_account_with_anchor to work with future Anchor versions: otter-sec/anchor#3163 as suggested in [PR#23](#23).
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.
Problem:
Tests did not work due to breaking changes in dependencies.
Running tests as
cargo test --features anchor --features pythreturn multiple compilation errors.Solution:
lang: Remove
discriminatormethod fromDiscriminatortrait otter-sec/anchor#3163 as suggested in PR#23.