Skip to content

Commit

Permalink
Change costs to P7 costs in the testing library.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Apr 15, 2024
1 parent b046083 commit 4500456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concordium-rust-sdk
4 changes: 2 additions & 2 deletions contract-testing/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ impl Chain {
sender_account.balance.total -= transaction_fee;

// Construct the artifact.
let artifact = match wasm::utils::instantiate_with_metering::<v1::ProcessedImports, _>(
let artifact = match wasm::utils::instantiate_with_metering::<v1::ProcessedImports>(
ValidationConfig::V1,
CostConfigurationV1,
&v1::ConcordiumAllowedImports {
Expand Down Expand Up @@ -2155,7 +2155,7 @@ pub(crate) fn from_interpreter_energy(interpreter_energy: &InterpreterEnergy) ->
/// Calculate the energy for looking up a [`ContractModule`].
pub(crate) fn lookup_module_cost(module: &ContractModule) -> Energy {
// The ratio is from Concordium/Cost.hs::lookupModule
Energy::from(module.size / 50)
Energy::from(module.size / 500)
}

/// Calculate the microCCD(mCCD) cost of energy(NRG) using the two exchange
Expand Down

0 comments on commit 4500456

Please sign in to comment.