Skip to content

Commit

Permalink
Add tests for svm/transaction_processor.rs (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte authored Mar 7, 2024
1 parent 8f3f06c commit 85cfe23
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion programs/bpf_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use {
},
instruction::{AccountMeta, InstructionError},
loader_upgradeable_instruction::UpgradeableLoaderInstruction,
native_loader,
loader_v4, native_loader,
program_utils::limited_deserialize,
pubkey::Pubkey,
saturating_add_assign,
Expand Down Expand Up @@ -193,6 +193,7 @@ pub fn check_loader_id(id: &Pubkey) -> bool {
bpf_loader::check_id(id)
|| bpf_loader_deprecated::check_id(id)
|| bpf_loader_upgradeable::check_id(id)
|| loader_v4::check_id(id)
}

/// Only used in macro, do not use directly!
Expand Down
1 change: 1 addition & 0 deletions svm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ crate-type = ["lib"]
name = "solana_svm"

[dev-dependencies]
bincode = { workspace = true }
solana-logger = { workspace = true }
solana-sdk = { workspace = true, features = ["dev-context-only-utils"] }

Expand Down
Loading

0 comments on commit 85cfe23

Please sign in to comment.