Add some tests and an input duplicate checker
This commit is contained in:
parent
93e1661c6c
commit
8d52ce1668
5 changed files with 228 additions and 36 deletions
test/fixtures
31
test/fixtures/psbt.json
vendored
31
test/fixtures/psbt.json
vendored
|
@ -304,6 +304,37 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"addInput": {
|
||||
"checks": [
|
||||
{
|
||||
"description": "checks for hash and index",
|
||||
"inputData": {
|
||||
"hash": 42
|
||||
},
|
||||
"exception": "Error adding input."
|
||||
},
|
||||
{
|
||||
"description": "checks for hash and index",
|
||||
"inputData": {
|
||||
"hash": "000102030405060708090a0b0c0d0e0f000102030405060708090a0b0c0d0e0f",
|
||||
"index": 2
|
||||
},
|
||||
"equals": "cHNidP8BADMCAAAAAQABAgMEBQYHCAkKCwwNDg8AAQIDBAUGBwgJCgsMDQ4PAgAAAAD/////AAAAAAAAAAA="
|
||||
}
|
||||
]
|
||||
},
|
||||
"addOutput": {
|
||||
"checks": [
|
||||
{
|
||||
"description": "checks for hash and index",
|
||||
"outputData": {
|
||||
"address": "1P2NFEBp32V2arRwZNww6tgXEV58FG94mr",
|
||||
"value": "xyz"
|
||||
},
|
||||
"exception": "Error adding output."
|
||||
}
|
||||
]
|
||||
},
|
||||
"signInput": {
|
||||
"checks": [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue