@@ -635,7 +635,7 @@ fn timelock_invalid_type() {
635635 execute(
636636 & [ ] ,
637637 & [ ] ,
638- & [ Instruction :: Push ( 0 ) , Instruction :: Push ( 5 ) , Instruction :: ChkTimelock ] ,
638+ & [ Instruction :: Push ( 0 ) , Instruction :: ChkTimelock ( 5 ) ] ,
639639 & dummy_tx( ) ,
640640 VMConfig :: default ( ) ,
641641 & dummy_input( ) ,
@@ -652,7 +652,7 @@ fn timelock_invalid_value() {
652652 execute(
653653 & [ ] ,
654654 & [ ] ,
655- & [ Instruction :: PushB ( vec![ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] ) , Instruction :: Push ( 1 ) , Instruction :: ChkTimelock ] ,
655+ & [ Instruction :: PushB ( vec![ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ] ) , Instruction :: ChkTimelock ( 1 ) ] ,
656656 & dummy_tx( ) ,
657657 VMConfig :: default ( ) ,
658658 & dummy_input( ) ,
@@ -670,7 +670,7 @@ fn timelock_block_number_success() {
670670 execute(
671671 & [ ] ,
672672 & [ ] ,
673- & [ Instruction :: PushB ( vec![ 10 ] ) , Instruction :: Push ( 1 ) , Instruction :: ChkTimelock ] ,
673+ & [ Instruction :: PushB ( vec![ 10 ] ) , Instruction :: ChkTimelock ( 1 ) ] ,
674674 & dummy_tx( ) ,
675675 VMConfig :: default ( ) ,
676676 & dummy_input( ) ,
@@ -688,7 +688,7 @@ fn timelock_block_number_fail() {
688688 execute(
689689 & [ ] ,
690690 & [ ] ,
691- & [ Instruction :: PushB ( vec![ 10 ] ) , Instruction :: Push ( 1 ) , Instruction :: ChkTimelock ] ,
691+ & [ Instruction :: PushB ( vec![ 10 ] ) , Instruction :: ChkTimelock ( 1 ) ] ,
692692 & dummy_tx( ) ,
693693 VMConfig :: default ( ) ,
694694 & dummy_input( ) ,
@@ -707,7 +707,7 @@ fn timelock_block_timestamp_success() {
707707 execute(
708708 & [ ] ,
709709 & [ ] ,
710- & [ Instruction :: PushB ( vec![ 0x00 , 0x5B , 0xD0 , 0x2B , 0xF2 ] ) , Instruction :: Push ( 3 ) , Instruction :: ChkTimelock ] ,
710+ & [ Instruction :: PushB ( vec![ 0x00 , 0x5B , 0xD0 , 0x2B , 0xF2 ] ) , Instruction :: ChkTimelock ( 3 ) ] ,
711711 & dummy_tx( ) ,
712712 VMConfig :: default ( ) ,
713713 & dummy_input( ) ,
@@ -726,7 +726,7 @@ fn timelock_block_timestamp_fail() {
726726 execute(
727727 & [ ] ,
728728 & [ ] ,
729- & [ Instruction :: PushB ( vec![ 0x00 , 0x5B , 0xD0 , 0x2B , 0xF2 ] ) , Instruction :: Push ( 3 ) , Instruction :: ChkTimelock ] ,
729+ & [ Instruction :: PushB ( vec![ 0x00 , 0x5B , 0xD0 , 0x2B , 0xF2 ] ) , Instruction :: ChkTimelock ( 3 ) ] ,
730730 & dummy_tx( ) ,
731731 VMConfig :: default ( ) ,
732732 & dummy_input( ) ,
@@ -744,7 +744,7 @@ fn timelock_block_age_fail_due_to_none() {
744744 execute(
745745 & [ ] ,
746746 & [ ] ,
747- & [ Instruction :: PushB ( vec![ 1 ] ) , Instruction :: Push ( 2 ) , Instruction :: ChkTimelock ] ,
747+ & [ Instruction :: PushB ( vec![ 1 ] ) , Instruction :: ChkTimelock ( 2 ) ] ,
748748 & dummy_tx( ) ,
749749 VMConfig :: default ( ) ,
750750 & dummy_input( ) ,
@@ -762,7 +762,7 @@ fn timelock_block_age_fail() {
762762 execute(
763763 & [ ] ,
764764 & [ ] ,
765- & [ Instruction :: PushB ( vec![ 5 ] ) , Instruction :: Push ( 2 ) , Instruction :: ChkTimelock ] ,
765+ & [ Instruction :: PushB ( vec![ 5 ] ) , Instruction :: ChkTimelock ( 2 ) ] ,
766766 & dummy_tx( ) ,
767767 VMConfig :: default ( ) ,
768768 & dummy_input( ) ,
@@ -780,7 +780,7 @@ fn timelock_block_age_success() {
780780 execute(
781781 & [ ] ,
782782 & [ ] ,
783- & [ Instruction :: PushB ( vec![ 5 ] ) , Instruction :: Push ( 2 ) , Instruction :: ChkTimelock ] ,
783+ & [ Instruction :: PushB ( vec![ 5 ] ) , Instruction :: ChkTimelock ( 2 ) ] ,
784784 & dummy_tx( ) ,
785785 VMConfig :: default ( ) ,
786786 & dummy_input( ) ,
@@ -798,7 +798,7 @@ fn timelock_time_age_fail_due_to_none() {
798798 execute(
799799 & [ ] ,
800800 & [ ] ,
801- & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: Push ( 4 ) , Instruction :: ChkTimelock ] ,
801+ & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: ChkTimelock ( 4 ) ] ,
802802 & dummy_tx( ) ,
803803 VMConfig :: default ( ) ,
804804 & dummy_input( ) ,
@@ -817,7 +817,7 @@ fn timelock_time_age_fail() {
817817 execute(
818818 & [ ] ,
819819 & [ ] ,
820- & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: Push ( 4 ) , Instruction :: ChkTimelock ] ,
820+ & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: ChkTimelock ( 4 ) ] ,
821821 & dummy_tx( ) ,
822822 VMConfig :: default ( ) ,
823823 & dummy_input( ) ,
@@ -835,7 +835,7 @@ fn timelock_time_age_success() {
835835 execute(
836836 & [ ] ,
837837 & [ ] ,
838- & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: Push ( 4 ) , Instruction :: ChkTimelock ] ,
838+ & [ Instruction :: PushB ( vec![ 0x27 , 0x8D , 0x00 ] ) , Instruction :: ChkTimelock ( 4 ) ] ,
839839 & dummy_tx( ) ,
840840 VMConfig :: default ( ) ,
841841 & dummy_input( ) ,
0 commit comments