Skip to content

Commit

Permalink
fix: make get_contract_bytecote pub
Browse files Browse the repository at this point in the history
So that it's accessible outside of the file.

Co-authored-by: Louise Poole <[email protected]>
  • Loading branch information
tamaralipows and louise-poole authored Oct 17, 2024
1 parent a4bce5d commit 50fd8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/vm/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::{

static BYTECODE_CACHE: LazyLock<Cache<Arc<String>, Vec<u8>>> = LazyLock::new(|| Cache::new(1_000));

fn get_contract_bytecode(path: &str) -> std::io::Result<Vec<u8>> {
pub fn get_contract_bytecode(path: &str) -> std::io::Result<Vec<u8>> {
if let Some(bytecode) = BYTECODE_CACHE.get(&Arc::new(path.to_string())) {
return Ok(bytecode.clone());
}
Expand Down

0 comments on commit 50fd8e7

Please sign in to comment.