From e239e73cd5add913d50de95af9637d7a285a44af Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Sat, 21 Dec 2024 09:41:20 +0300 Subject: [PATCH] overide env variables --- parse.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parse.py b/parse.py index 6531377..a4dc714 100644 --- a/parse.py +++ b/parse.py @@ -65,7 +65,7 @@ def t_error(t): lexer = lex.lex() -load_dotenv() +load_dotenv(override=True) # Chain Params chainId = os.getenv("CHAIN_ID", "44787") @@ -783,12 +783,10 @@ def voucher_mint_handler(cmd): voucher_symbols = list(map(lambda symbol: symbol["symbol"], data)) voucher_address = list(map(lambda address: address["voucher_address"], data)) - voucher_owners = list(map(lambda address: address["owner"], data)) if voucher_symbol in voucher_symbols: index = voucher_symbols.index(voucher_symbol) s = voucher_address[index] - privatekey = voucher_owners[index] else: raise ValueError(f"Voucher with symbol {voucher_symbol} was not found") @@ -800,7 +798,7 @@ def voucher_mint_handler(cmd): ) command = ( - f"cast send --private-key {privatekey} " + f"cast send --private-key {master_private_key} " f"--rpc-url {rpc} " f"--nonce {nonce} " f" {s} "