diff --git a/examples_and_tutorials/millionaires_problem_example/01_store_secret_party1.py b/examples_and_tutorials/millionaires_problem_example/01_store_secret_party1.py index f97083ba..3f7882d9 100644 --- a/examples_and_tutorials/millionaires_problem_example/01_store_secret_party1.py +++ b/examples_and_tutorials/millionaires_problem_example/01_store_secret_party1.py @@ -5,6 +5,7 @@ from dotenv import load_dotenv from config import ( + CONFIG_PROGRAM_NAME, CONFIG_PARTY_1 ) @@ -24,7 +25,7 @@ async def main(): millionaires_program_name = "millionaires" # Note: check out the code for the full millionaires program in the programs folder - program_mir_path = "millionaires.nada.bin" + program_mir_path=f"../../programs-compiled/{CONFIG_PROGRAM_NAME}.nada.bin" # Store millionaires program in the network print(f"Storing program in the network: {millionaires_program_name}") diff --git a/examples_and_tutorials/millionaires_problem_example/config.py b/examples_and_tutorials/millionaires_problem_example/config.py index 24fb49d8..f6655cbc 100644 --- a/examples_and_tutorials/millionaires_problem_example/config.py +++ b/examples_and_tutorials/millionaires_problem_example/config.py @@ -2,6 +2,7 @@ import py_nillion_client as nillion from dotenv import load_dotenv load_dotenv() +CONFIG_PROGRAM_NAME="millionaires" # Alice CONFIG_PARTY_1={ @@ -29,4 +30,3 @@ "secret_name": "charlie_salary", "secret_value": 12000, }, -] \ No newline at end of file