Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Oct 12, 2023
1 parent 0f5831f commit d5a064c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ckb_js_tests/test_data/simple_udt.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function main() {
if (data.byteLength != 16) {
throw `Invalid data length: ${data.byteLength}`;
}
let n = new BigUint64Array(data, 0, 2);
let n = new BigUint64Array(data);
let current_amount = n[0] | (n[1] << 64n);
input_amount += current_amount;
}
Expand All @@ -99,7 +99,7 @@ function main() {
if (data.byteLength != 16) {
throw `Invalid data length: ${data.byteLength}`;
}
let n = new BigUint64Array(data, 0, 2);
let n = new BigUint64Array(data);
let current_amount = n[0] | (n[1] << 64n);
output_amount += current_amount;
}
Expand Down

0 comments on commit d5a064c

Please sign in to comment.