Skip to content

Commit c63721c

Browse files
committed
Add tests for the exceptions: 'Input and witness provided' and 'Non push-only scriptSig'
1 parent b77b1a0 commit c63721c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/fixtures/p2sh.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,26 @@
323323
}
324324
}
325325
},
326+
{
327+
"exception": "Input and witness provided",
328+
"arguments": {
329+
"redeem": {
330+
"input": "OP_0",
331+
"witness": [
332+
"030000000000000000000000000000000000000000000000000000000000000001"
333+
]
334+
}
335+
}
336+
},
337+
{
338+
"exception": "Non push-only scriptSig",
339+
"arguments": {
340+
"redeem": {
341+
"input": "OP_RETURN",
342+
"output": "OP_1"
343+
}
344+
}
345+
},
326346
{
327347
"exception": "Redeem.output too short",
328348
"arguments": {

0 commit comments

Comments
 (0)