Skip to content

Commit

Permalink
fix: use install_path to reference the default cost model files
Browse files Browse the repository at this point in the history
  • Loading branch information
sierkov committed Nov 11, 2024
1 parent 258ccfb commit 85365a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dt/plutus/costs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,19 +573,19 @@ namespace daedalus_turbo::plutus::costs {

const arg_map &default_cost_args_v1()
{
static auto args = load_cost_args("./etc/plutus/cekMachineCostsA.json", "./etc/plutus/builtinCostModelA.json");
static auto args = load_cost_args(install_path("etc/plutus/cekMachineCostsA.json"), install_path("etc/plutus/builtinCostModelA.json"));
return args;
}

const arg_map &default_cost_args_v2()
{
static auto args = load_cost_args("./etc/plutus/cekMachineCostsB.json", "./etc/plutus/builtinCostModelB.json");
static auto args = load_cost_args(install_path("etc/plutus/cekMachineCostsB.json"), install_path("etc/plutus/builtinCostModelB.json"));
return args;
}

const arg_map &default_cost_args_v3()
{
static auto args = load_cost_args("./etc/plutus/cekMachineCostsC.json", "./etc/plutus/builtinCostModelC.json");
static auto args = load_cost_args(install_path("etc/plutus/cekMachineCostsC.json"), install_path("./etc/plutus/builtinCostModelC.json"));
return args;
}

Expand Down

0 comments on commit 85365a3

Please sign in to comment.