Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Wójcik committed Dec 11, 2024
1 parent 06af613 commit e349da0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/cli/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,10 @@ mod transaction {
use super::*;
use crate::{cli::TransactionV1BuilderError, Error::TransactionBuild};
use casper_types::{
bytesrepr::Bytes, system::auction::Reservation, PackageAddr, TransactionArgs,
TransactionEntryPoint, TransactionInvocationTarget, TransactionRuntimeParams,
TransactionTarget, TransferTarget,
bytesrepr::Bytes,
system::auction::{DelegatorKind, Reservation},
PackageAddr, TransactionArgs, TransactionEntryPoint, TransactionInvocationTarget,
TransactionRuntimeParams, TransactionTarget, TransferTarget,
};
use once_cell::sync::Lazy;
use rand::{thread_rng, Rng};
Expand Down Expand Up @@ -1092,7 +1093,7 @@ mod transaction {
let delegators = (0..rng.gen_range(1..10))
.map(|_| {
let secret_key = SecretKey::generate_ed25519().unwrap();
PublicKey::from(&secret_key)
DelegatorKind::PublicKey(PublicKey::from(&secret_key))
})
.collect();

Expand Down Expand Up @@ -1448,7 +1449,7 @@ mod transaction {

let maybe_source = Some(source_uref);

let source_uref_cl = &CLValue::from_t(&source_uref).unwrap();
let source_uref_cl = &CLValue::from_t(source_uref).unwrap();
let target_uref_cl = &CLValue::from_t(target_uref).unwrap();

let transaction_string_params = TransactionStrParams {
Expand Down

0 comments on commit e349da0

Please sign in to comment.