Skip to content

Commit

Permalink
fix: sudt.js wrong CELL_FIELD_LOCK_HASH (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu authored Sep 11, 2024
1 parent c8b2fae commit fe6e580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ckb_js_tests/test_data/simple_udt.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function main() {
let owner_mode = false;
// ckb-js-vm has leading 35 bytes args
let real_args = script.args.slice(35);
for (let lock_hash of iterate_field(ckb.SOURCE_INPUT, ckb.CKB_CELL_FIELD_LOCK_HASH)) {
for (let lock_hash of iterate_field(ckb.SOURCE_INPUT, ckb.CELL_FIELD_LOCK_HASH)) {
if (compare_array(lock_hash, real_args)) {
owner_mode = true;
}
Expand Down

0 comments on commit fe6e580

Please sign in to comment.