test: integration tests for the basic_solana example#75
Merged
gregorydemay merged 16 commits intomainfrom Apr 22, 2025
Merged
Conversation
# Conflicts: # examples/basic_solana/src/lib.rs
basic_solana example
gregorydemay
commented
Apr 22, 2025
ninegua
reviewed
Apr 22, 2025
ninegua
approved these changes
Apr 22, 2025
This was referenced Apr 23, 2025
gregorydemay
added a commit
that referenced
this pull request
Apr 24, 2025
Follow-up on #75 that improves the `SolRpcClient` by being able to set in the client builder a default commitment level that will be used by the built client for all future requests. This is similar to what the Solana client offers with [`new_with_commitment`](https://docs.rs/solana-client/latest/solana_client/rpc_client/struct.RpcClient.html#method.new_with_commitment).
gregorydemay
added a commit
that referenced
this pull request
Apr 28, 2025
Follow-up on #75 to also test the transfer of SPL tokens in the `basic_solana` example.
Closed
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.
Ensure that the instructions for trying out the
basic_solanaexample are up-to-date by adding the following integration test:basic_solanato split the code between amain.rsand alib.rs, so that public types can be re-used in integration tests.examples/basic_solana/README.mdfile.Left for future PRs:
https://crates.io/crates/spl-token-2022needed to craft instructions related to SPL tokens brings many conflicts among its transitive dependencies. This could be avoided by using thespl-token-clicommand line tool.