Add tests for the exceptions: 'Input and witness provided' and 'Non push-only scriptSig'

This commit is contained in:
Vlad Stan 2020-09-07 10:56:06 +03:00
parent b77b1a0653
commit c63721ca8f

View file

@ -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": {