Skip to content

Commit

Permalink
[Bitcoin]: Fix Rust WASM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshiotomakan committed Jul 10, 2024
1 parent 7248605 commit 169f6c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/frameworks/tw_utxo/src/script/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ mod tests {

#[test]
fn test_script_push_long_data_2() {
let data1 = [1; 65_530];
let data2 = [2; 70_000];
// Don't use fixed (on stack) byte array
// because it causes (signal: 10, SIGBUS: access to undefined memory) in WASM.
let data1 = vec![1; 65_530];
let data2 = vec![2; 70_000];

let mut script = Script::new();
script.push(OP_PUSHBYTES_0);
Expand Down

0 comments on commit 169f6c7

Please sign in to comment.