Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move anchor.toml to root and ignore tests in solana-ibc workspace #18

Merged
merged 3 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions solana/solana-ibc/Anchor.toml → Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ solana_ibc = "7MEuaEwNMsjVCJy9N31ZgvQf1dFkRNXYFREaAjMsoE5g"
[registry]
url = "https://api.apr.dev"

[workspace]
members = [
"solana/solana-ibc/programs/solana-ibc"
]

[provider]
cluster = "Localnet"
wallet = "~/.config/solana/id.json"
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions solana/solana-ibc/programs/solana-ibc/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ fn create_mock_client_and_cs_state() -> (MockClientState, MockConsensusState) {
}

#[test]
#[ignore = "Requires local validator to run"]
fn test_deliver() -> Result<()> {
let authority = Rc::new(Keypair::new());
println!("This is pubkey {}", authority.pubkey().to_string());
Expand Down Expand Up @@ -87,8 +88,7 @@ fn test_deliver() -> Result<()> {
.args(instruction::Deliver { messages: all_messages })
.payer(authority.clone())
.signer(&*authority)
.send()
.unwrap();
.send()?; // ? gives us the log messages on the why the tx did fail ( better than unwrap )
mina86 marked this conversation as resolved.
Show resolved Hide resolved

println!("demo sig: {sig}");

Expand Down
Loading