Skip to content

fix: resolve async/sync mismatches and missing Chain match arms#36

Open
knoal wants to merge 2 commits into
kcolbchain:mainfrom
knoal:fix/solana-integration-async
Open

fix: resolve async/sync mismatches and missing Chain match arms#36
knoal wants to merge 2 commits into
kcolbchain:mainfrom
knoal:fix/solana-integration-async

Conversation

@knoal

@knoal knoal commented Jul 2, 2026

Copy link
Copy Markdown

Fixes three issues blocking PR #23:

  1. Async/sync mismatch in tests: Removed .await from balance(), transfer_sol(), and transfer_spl_token() calls in tests/solana_integration.rs — these methods are synchronous but the async test functions were awaiting them.
  2. Missing Display arms for Solana variants: Added Solana and SolanaDevnet arms to the fmt::Display impl for Chain in src/chain/mod.rs.
  3. Error conversion in SPL token transfer: Added .map_err() to convert ProgramError from spl_token::instruction::transfer to SolanaError::TransactionFailed, fixing E0277.

The code compiles cleanly (only deprecation warnings, no errors).

syutoutousai and others added 2 commits June 5, 2026 23:43
Adds full Solana support behind the solana feature flag:
- New src/chains/solana.rs with SolanaConnector and SolanaWallet
- Support for SOL and SPL token transfers
- Updated Chain enum to include Solana and SolanaDevnet
- Updated README.md and examples/multi_chain.rs
- Added integration tests in tests/solana_integration.rs

Closes kcolbchain#22
…lana module

- Remove .await from sync method calls in solana_integration.rs (balance,
  transfer_sol, transfer_spl_token are all synchronous)
- Add missing Solana/SolanaDevnet arms to Display impl for Chain
- Map spl_token::instruction::error to SolanaError::TransactionFailed
  in transfer_spl_token to fix E0277 error conversion
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.

2 participants