From 6413fbddf5ba71255ccd8a42eee3785d3288fcc6 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 7 Nov 2024 03:48:07 +0100 Subject: [PATCH 1/2] Update types latest changes --- lib/cli/parse.rs | 2 +- lib/rpcs/v2_0_0/get_entity.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/cli/parse.rs b/lib/cli/parse.rs index 22e80eb4..96bceac9 100644 --- a/lib/cli/parse.rs +++ b/lib/cli/parse.rs @@ -970,7 +970,7 @@ pub(super) fn pricing_mode( error: "Receipt is required for reserved pricing mode".to_string(), }); } - Ok(PricingMode::Reserved { + Ok(PricingMode::Prepaid { receipt: maybe_receipt.unwrap_or_default(), }) } diff --git a/lib/rpcs/v2_0_0/get_entity.rs b/lib/rpcs/v2_0_0/get_entity.rs index 78c990ab..3c3ded4a 100644 --- a/lib/rpcs/v2_0_0/get_entity.rs +++ b/lib/rpcs/v2_0_0/get_entity.rs @@ -1,7 +1,6 @@ use casper_types::{ account::{Account, AccountHash}, - addressable_entity::NamedKeys, - AddressableEntity as CasperTypesAddressableEntity, EntityAddr, EntryPointValue, + AddressableEntity as CasperTypesAddressableEntity, EntityAddr, EntryPointValue, NamedKeys, ProtocolVersion, PublicKey, }; use serde::{Deserialize, Serialize}; From 30530eb64ad902c45a9f78f65740b9bbd26f7353 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 7 Nov 2024 03:51:35 +0100 Subject: [PATCH 2/2] test --- lib/cli/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/parse.rs b/lib/cli/parse.rs index 96bceac9..d8d05c2d 100644 --- a/lib/cli/parse.rs +++ b/lib/cli/parse.rs @@ -1871,7 +1871,7 @@ mod tests { .unwrap(); assert_eq!( parsed, - PricingMode::Reserved { + PricingMode::Prepaid { receipt: Digest::from_hex(VALID_HASH).unwrap(), } );