Skip to content

Commit

Permalink
default version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
weikengchen committed Jul 12, 2024
1 parent fdc13f1 commit 1b931be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub fn get_tx<T: CovenantProgram>(

// Initialize a new transaction.
let mut tx = Transaction {
version: Version::ONE,
version: Version::TWO,
lock_time: LockTime::ZERO,
input: vec![],
output: vec![],
Expand Down
4 changes: 2 additions & 2 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub fn simulation_test<T: CovenantProgram>(

// initialize the counter and accept it unconditionally
let init_tx = Transaction {
version: Version::ONE,
version: Version::TWO,
lock_time: LockTime::ZERO,
input: vec![TxIn {
previous_output: OutPoint {
Expand Down Expand Up @@ -116,7 +116,7 @@ pub fn simulation_test<T: CovenantProgram>(
// If there is a deposit input
let deposit_input = if has_deposit_input {
let fee_tx = Transaction {
version: Version::ONE,
version: Version::TWO,
lock_time: LockTime::ZERO,
input: vec![TxIn {
previous_output: OutPoint {
Expand Down

0 comments on commit 1b931be

Please sign in to comment.