Add tests for the exceptions: 'Input and witness provided' and 'Non push-only scriptSig'
This commit is contained in:
parent
b77b1a0653
commit
c63721ca8f
1 changed files with 20 additions and 0 deletions
20
test/fixtures/p2sh.json
vendored
20
test/fixtures/p2sh.json
vendored
|
@ -323,6 +323,26 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"exception": "Input and witness provided",
|
||||
"arguments": {
|
||||
"redeem": {
|
||||
"input": "OP_0",
|
||||
"witness": [
|
||||
"030000000000000000000000000000000000000000000000000000000000000001"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"exception": "Non push-only scriptSig",
|
||||
"arguments": {
|
||||
"redeem": {
|
||||
"input": "OP_RETURN",
|
||||
"output": "OP_1"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"exception": "Redeem.output too short",
|
||||
"arguments": {
|
||||
|
|
Loading…
Reference in a new issue