diff --git a/execution_engine_testing/tests/src/test/system_costs.rs b/execution_engine_testing/tests/src/test/system_costs.rs index f3b390980f..c60246a496 100644 --- a/execution_engine_testing/tests/src/test/system_costs.rs +++ b/execution_engine_testing/tests/src/test/system_costs.rs @@ -427,32 +427,6 @@ fn delegate_and_undelegate_have_expected_costs() { #[ignore] #[test] fn upgraded_delegate_and_undelegate_have_expected_costs() { - // let new_wasmless_transfer_cost = DEFAULT_WASMLESS_TRANSFER_COST; - // let new_max_associated_keys = DEFAULT_MAX_ASSOCIATED_KEYS; - // - // let new_auction_costs = AuctionCosts { - // delegate: NEW_DELEGATE_COST, - // undelegate: NEW_UNDELEGATE_COST, - // redelegate: NEW_REDELEGATE_COST, - // ..Default::default() - // }; - // let new_mint_costs = MintCosts::default(); - // let new_standard_payment_costs = StandardPaymentCosts::default(); - // let new_handle_payment_costs = HandlePaymentCosts::default(); - // - // let new_system_config = SystemConfig::new( - // new_wasmless_transfer_cost, - // new_auction_costs, - // new_mint_costs, - // new_handle_payment_costs, - // new_standard_payment_costs, - // ); - - // let new_engine_config = EngineConfigBuilder::default() - // .with_max_associated_keys(new_max_associated_keys) - // .with_system_config(new_system_config) - // .build(); - let mut builder = LmdbWasmTestBuilder::default(); let accounts = { let validator_1 = GenesisAccount::account( diff --git a/execution_engine_testing/tests/src/test/wasmless_transfer.rs b/execution_engine_testing/tests/src/test/wasmless_transfer.rs index fde168cd74..d7953ef31a 100644 --- a/execution_engine_testing/tests/src/test/wasmless_transfer.rs +++ b/execution_engine_testing/tests/src/test/wasmless_transfer.rs @@ -305,39 +305,6 @@ enum InvalidWasmlessTransfer { OtherPurseToSelfPurse, } -// fn foo(invalid_wasmless_transfer: InvalidWasmlessTransfer) { -// let mut builder = LmdbWasmTestBuilder::default(); -// -// // let create_account_1_request = ExecuteRequestBuilder::standard( -// // *DEFAULT_ACCOUNT_ADDR, -// // CONTRACT_TRANSFER_PURSE_TO_ACCOUNT, -// // runtime_args! { -// // mint::ARG_TARGET => *ACCOUNT_1_ADDR, -// // mint::ARG_AMOUNT => *DEFAULT_PAYMENT, -// // mint::ARG_ID => id -// // }, -// // ) -// // .build(); -// let config = NativeRuntimeConfig::default(); -// let block_time = Instant::now(); -// let protocol_version = ProtocolVersion::V2_0_0; -// //transaction_hash: TransactionHash, -// let address = *DEFAULT_ACCOUNT_ADDR; -// let authorization_keys = &[*DEFAULT_ACCOUNT_ADDR]; -// let args = runtime_args! { -// mint::ARG_TARGET => *ACCOUNT_1_ADDR, -// mint::ARG_AMOUNT => *DEFAULT_PAYMENT, -// mint::ARG_ID => None -// }; -// // cost: U512, -// let transfer_request = TransferRequest::new(); -// match builder.data_access_layer().transfer(transfer_request) { -// TransferResult::RootNotFound => {} -// TransferResult::Success { .. } => {} -// TransferResult::Failure(_) => {} -// } -// } - fn invalid_transfer_wasmless(invalid_wasmless_transfer: InvalidWasmlessTransfer) { let create_account_2: bool = true; let mut builder = init_wasmless_transform_builder(create_account_2); @@ -992,24 +959,6 @@ fn transfer_wasmless_should_observe_upgraded_cost() { const DEFAULT_ACTIVATION_POINT: EraId = EraId::new(1); - // let new_auction_costs = AuctionCosts::default(); - // let new_mint_costs = MintCosts::default(); - // let new_handle_payment_costs = HandlePaymentCosts::default(); - // let new_standard_payment_costs = StandardPaymentCosts::default(); - - // let new_system_config = SystemConfig::new( - // new_wasmless_transfer_cost_value, - // new_auction_costs, - // new_mint_costs, - // new_handle_payment_costs, - // new_standard_payment_costs, - // ); - - // let new_engine_config = EngineConfigBuilder::default() - // .with_max_associated_keys(new_max_associated_keys) - // .with_system_config(new_system_config) - // .build(); - let old_protocol_version = *DEFAULT_PROTOCOL_VERSION; let new_protocol_version = ProtocolVersion::from_parts( old_protocol_version.value().major, diff --git a/storage/src/global_state/error.rs b/storage/src/global_state/error.rs index 62330f2257..a7a1df01bd 100644 --- a/storage/src/global_state/error.rs +++ b/storage/src/global_state/error.rs @@ -39,12 +39,6 @@ pub enum Error { FailedToPrune(Vec), } -// impl From for Error { -// fn from(error: bytesrepr::Error) -> Self { -// Error::BytesRepr(error) -// } -// } - impl From> for Error { fn from(_error: sync::PoisonError) -> Self { Error::Poison