Skip to content

Commit

Permalink
Fix timelock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Jan 12, 2024
1 parent f9d455a commit b38e29d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sdk/tests/client/input_selection/timelock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use iota_sdk::{
client::api::input_selection::{Error, InputSelection},
types::block::{address::Address, protocol::protocol_parameters},
types::block::{address::Address, protocol::protocol_parameters, slot::SlotIndex},
};
use pretty_assertions::assert_eq;

Expand Down Expand Up @@ -67,7 +67,7 @@ fn timelock_equal_timestamp() {
None,
None,
)],
None,
Some(SlotIndex::from(200)),
);
let outputs = build_outputs([Basic(
2_000_000,
Expand All @@ -84,7 +84,7 @@ fn timelock_equal_timestamp() {
inputs.clone(),
outputs.clone(),
[Address::try_from_bech32(BECH32_ADDRESS_ED25519_0).unwrap()],
SLOT_INDEX,
200,
protocol_parameters,
)
.select()
Expand Down Expand Up @@ -121,7 +121,7 @@ fn two_outputs_one_timelock_expired() {
None,
),
],
None,
Some(SlotIndex::from(100)),
);
let outputs = build_outputs([Basic(
2_000_000,
Expand All @@ -138,7 +138,7 @@ fn two_outputs_one_timelock_expired() {
inputs.clone(),
outputs.clone(),
[Address::try_from_bech32(BECH32_ADDRESS_ED25519_0).unwrap()],
SLOT_INDEX,
100,
protocol_parameters,
)
.select()
Expand Down Expand Up @@ -176,7 +176,7 @@ fn two_outputs_one_timelocked_one_missing() {
None,
),
],
None,
Some(SlotIndex::from(100)),
);
let outputs = build_outputs([Basic(
2_000_000,
Expand All @@ -193,7 +193,7 @@ fn two_outputs_one_timelocked_one_missing() {
inputs.clone(),
outputs.clone(),
[Address::try_from_bech32(BECH32_ADDRESS_ED25519_0).unwrap()],
SLOT_INDEX,
100,
protocol_parameters,
)
.select()
Expand All @@ -219,7 +219,7 @@ fn one_output_timelock_expired() {
None,
None,
)],
None,
Some(SlotIndex::from(100)),
);
let outputs = build_outputs([Basic(
2_000_000,
Expand All @@ -236,7 +236,7 @@ fn one_output_timelock_expired() {
inputs.clone(),
outputs.clone(),
[Address::try_from_bech32(BECH32_ADDRESS_ED25519_0).unwrap()],
SLOT_INDEX,
100,
protocol_parameters,
)
.select()
Expand Down

0 comments on commit b38e29d

Please sign in to comment.