Skip to content

Commit 216363b

Browse files
committed
fix(clarity-wasm): miscalculation of contract-call? arguments sizes
1 parent e8738cb commit 216363b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clarity/src/vm/clarity_wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ pub fn call_function<'a, 'b, 'c>(
533533
// Determine how much space is needed for arguments
534534
let mut arg_size = 0;
535535
for arg in func_types.get_arg_types() {
536-
arg_size += get_type_size(arg);
536+
arg_size += get_type_in_memory_size(arg, false);
537537
}
538538
let mut in_mem_offset = offset + arg_size;
539539

0 commit comments

Comments
 (0)