Skip to content

Commit cd565d3

Browse files
committed
Add test vectors
1 parent 4437740 commit cd565d3

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,3 @@ cd tests/omni_lock_rust && cargo test
2020

2121
See [RFC](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0042-omnilock/0042-omnilock.md)
2222

23-
24-
## Test Vector
25-
26-
```shell
27-
# Project root directory
28-
ckb-debugger --bin build/omni_lock -f test-vectors/tx_btc_P2PKH_compressed.json -i 0 -s lock
29-
```

test-vectors/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
These test vectors require [ckb-debugger](https://github.com/nervosnetwork/ckb-standalone-debugger.git) installed.
3+
Use shell script `run-all.sh` to run all scripts.

test-vectors/run-all.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
for file in *.json; do
4+
ckb-debugger --bin ../build/omni_lock -f $file -i 0 -s lock
5+
done
6+

0 commit comments

Comments
 (0)