81 lines
2.4 KiB
JSON
81 lines
2.4 KiB
JSON
|
{
|
||
|
"category": "Push",
|
||
|
"name": "PUSHBYTES1",
|
||
|
"tests":
|
||
|
[
|
||
|
{
|
||
|
"name": "Good definition",
|
||
|
"script": "0x0100",
|
||
|
"steps":
|
||
|
[
|
||
|
{
|
||
|
"actions":
|
||
|
[
|
||
|
"StepInto"
|
||
|
],
|
||
|
"result":
|
||
|
{
|
||
|
"state": "Break",
|
||
|
"invocationStack":
|
||
|
[
|
||
|
{
|
||
|
"scriptHash": "0xFBC22D517F38E7612798ECE8E5957CF6C41D8CAF",
|
||
|
"instructionPointer": 2,
|
||
|
"nextInstruction": "RET",
|
||
|
"evaluationStack":
|
||
|
[
|
||
|
{
|
||
|
"type": "ByteArray",
|
||
|
"value": "0x00"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"actions":
|
||
|
[
|
||
|
"StepInto"
|
||
|
],
|
||
|
"result":
|
||
|
{
|
||
|
"state": "Halt",
|
||
|
"resultStack":
|
||
|
[
|
||
|
{
|
||
|
"type": "ByteArray",
|
||
|
"value": "0x00"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "Wrong definition (without enough length)",
|
||
|
"script": "0x01",
|
||
|
"steps":
|
||
|
[
|
||
|
{
|
||
|
"actions":
|
||
|
[
|
||
|
"StepInto"
|
||
|
],
|
||
|
"result":
|
||
|
{
|
||
|
"state": "Fault",
|
||
|
"invocationStack":
|
||
|
[
|
||
|
{
|
||
|
"scriptHash": "0xC51B66BCED5E4491001BD702669770DCCF440982",
|
||
|
"instructionPointer": 1,
|
||
|
"nextInstruction": "RET"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|