Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Use existing cached crate instead of memoized (#1310)
Browse files Browse the repository at this point in the history
Co-Authored-By: Gilad Chase <[email protected]>
  • Loading branch information
giladchase and Gilad Chase authored Jan 3, 2024
1 parent 720139f commit 44ed16e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 27 deletions.
24 changes: 0 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ indexmap = "2.1.0"
itertools = "0.10.3"
keccak = "0.1.3"
log = "0.4"
memoize = "0.4.1"
num-bigint = "0.4"
num-integer = "0.1.45"
num-traits = "0.2"
Expand Down
1 change: 0 additions & 1 deletion crates/blockifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ indexmap.workspace = true
itertools.workspace = true
keccak.workspace = true
log.workspace = true
memoize.workspace = true
num-bigint.workspace = true
num-integer.workspace = true
num-traits.workspace = true
Expand Down
3 changes: 2 additions & 1 deletion crates/blockifier/src/test_utils/prices.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use cached::proc_macro::cached;
use cairo_vm::vm::runners::cairo_runner::ExecutionResources as VmExecutionResources;
use starknet_api::core::ContractAddress;
use starknet_api::hash::StarkFelt;
Expand Down Expand Up @@ -36,7 +37,7 @@ impl From<Prices> for VmExecutionResources {
}

/// Returns the expected VM resource consumption for a fee transfer call from the given address.
#[memoize::memoize]
#[cached]
fn fee_transfer_resources(
account_contract_address: ContractAddress,
fee_type: FeeType,
Expand Down

0 comments on commit 44ed16e

Please sign in to comment.