Skip to content

Commit

Permalink
Fix Budget::memory_bytes_cost
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Aug 2, 2023
1 parent 71da3e2 commit 7bae181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soroban-sdk/src/testutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub mod budget {
/// Note that memory is likely to be underestimated when running Rust
/// code compared to running the WASM equivalent.
pub fn memory_bytes_cost(&self) -> u64 {
self.0.get_cpu_insns_consumed().unwrap()
self.0.get_mem_bytes_consumed().unwrap()
}

/// Get the input tracker associated with the cost. The tracker tracks
Expand Down

0 comments on commit 7bae181

Please sign in to comment.