Skip to content

Commit a62c6f3

Browse files
authored
Merge pull request #6541 from csgui/fix/clarity-wasm-issue-719
fix memory offsets
2 parents 6cbf764 + f0d4244 commit a62c6f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clarity/src/vm/clarity_wasm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ pub fn call_function<'a>(
578578
.as_ref()
579579
.ok_or(Error::Wasm(WasmError::ExpectedReturnValue))?
580580
.clone();
581-
let (mut results, offset) = reserve_space_for_return(offset, &return_type)?;
581+
let (mut results, offset) = reserve_space_for_return(in_mem_offset, &return_type)?;
582582

583583
// Update the stack pointer after space is reserved for the arguments and
584584
// return values.
@@ -6609,7 +6609,7 @@ fn link_contract_call_fn(linker: &mut Linker<ClarityWasmContext>) -> Result<(),
66096609
return_offset,
66106610
return_offset + get_type_size(return_ty),
66116611
&result,
6612-
false,
6612+
true,
66136613
)?;
66146614

66156615
Ok(())

0 commit comments

Comments
 (0)