Skip to content
Open
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
2 changes: 2 additions & 0 deletions simplicity-sys/src/tests/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ pub mod eval {
dag: *const CDagNode,
type_dag: *mut CType,
len: c_size_t,
min_cost: ubounded,
budget: *const ubounded,
env: *const elements::CTxEnv,
) -> SimplicityErr;
Expand Down Expand Up @@ -444,6 +445,7 @@ pub mod eval {
dag,
type_dag,
len,
0,
budget,
env,
)
Expand Down
2 changes: 1 addition & 1 deletion simplicity-sys/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub fn run_program(
}

// 9. Run the program
let budget_ptr = budget.map(|b| b as *const _).unwrap_or(ptr::null());
let budget_ptr = budget.as_ref().map(|b| b as *const _).unwrap_or(ptr::null());
let env_ptr = env.map(|e| e as *const _).unwrap_or(ptr::null());
result.eval_result = simplicity_evalTCOProgram(dag, type_dag, len, budget_ptr, env_ptr);
}
Expand Down
Loading