From 9d777909e4be4fb096e58db77472737a0837673d Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Mon, 5 Feb 2024 14:06:01 +0100 Subject: [PATCH 1/5] fix: typing list --- scripts/swap_safe_owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/swap_safe_owner.py b/scripts/swap_safe_owner.py index 2c23d3e5..f705c019 100644 --- a/scripts/swap_safe_owner.py +++ b/scripts/swap_safe_owner.py @@ -85,7 +85,7 @@ def load_contract(ctype: ContractType) -> ContractType: current_owner_crypto = EthereumCrypto( private_key_path=args.current_owner_private_key_path, password=args.password ) - owner_cryptos: list[EthereumCrypto] = [current_owner_crypto] + owner_cryptos: typing.List[EthereumCrypto] = [current_owner_crypto] owners = [ ledger_api.api.to_checksum_address(owner_crypto.address) From 9da379cf204244472c690e5dfa2bdb35d02d7afe Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Mon, 5 Feb 2024 15:04:23 +0100 Subject: [PATCH 2/5] chore: fix typing --- scripts/swap_safe_owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/swap_safe_owner.py b/scripts/swap_safe_owner.py index f705c019..ae8876fe 100644 --- a/scripts/swap_safe_owner.py +++ b/scripts/swap_safe_owner.py @@ -85,7 +85,7 @@ def load_contract(ctype: ContractType) -> ContractType: current_owner_crypto = EthereumCrypto( private_key_path=args.current_owner_private_key_path, password=args.password ) - owner_cryptos: typing.List[EthereumCrypto] = [current_owner_crypto] + owner_cryptos = [current_owner_crypto] owners = [ ledger_api.api.to_checksum_address(owner_crypto.address) From 5e3e30f35cb3ac45367948d6e5d0f54619b336fb Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Mon, 5 Feb 2024 15:25:48 +0100 Subject: [PATCH 3/5] chore: fix autonomy init --- run_service.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_service.sh b/run_service.sh index b8c539fe..90bd647d 100755 --- a/run_service.sh +++ b/run_service.sh @@ -705,8 +705,6 @@ if [ ! -d "$directory" ]; then fi cd $directory -poetry run autonomy init --reset --author $open_autonomy_author --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https" - if [ "$(git rev-parse --is-inside-work-tree)" = true ] then poetry install @@ -717,6 +715,8 @@ else exit 1 fi +poetry run autonomy init --reset --author $open_autonomy_author --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https" + # Setup the minting tool export CUSTOM_CHAIN_RPC=$rpc export CUSTOM_CHAIN_ID=$gnosis_chain_id From 1e46f576cf166e57e806256414df545ae939be27 Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Mon, 5 Feb 2024 15:26:17 +0100 Subject: [PATCH 4/5] chore: fix autonomy init --- run_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_service.sh b/run_service.sh index 90bd647d..2053dbe9 100755 --- a/run_service.sh +++ b/run_service.sh @@ -709,13 +709,13 @@ if [ "$(git rev-parse --is-inside-work-tree)" = true ] then poetry install poetry run autonomy packages sync + poetry run autonomy init --reset --author $open_autonomy_author --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https" poetry add tqdm else echo "$directory is not a git repo!" exit 1 fi -poetry run autonomy init --reset --author $open_autonomy_author --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https" # Setup the minting tool export CUSTOM_CHAIN_RPC=$rpc From 8a705d52f80ee0fdcaf06191e1ab26b4e0964ba0 Mon Sep 17 00:00:00 2001 From: jmoreira-valory Date: Mon, 5 Feb 2024 17:02:37 +0100 Subject: [PATCH 5/5] chore: add typing comment --- scripts/swap_safe_owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/swap_safe_owner.py b/scripts/swap_safe_owner.py index ae8876fe..c9387b36 100644 --- a/scripts/swap_safe_owner.py +++ b/scripts/swap_safe_owner.py @@ -85,7 +85,7 @@ def load_contract(ctype: ContractType) -> ContractType: current_owner_crypto = EthereumCrypto( private_key_path=args.current_owner_private_key_path, password=args.password ) - owner_cryptos = [current_owner_crypto] + owner_cryptos = [current_owner_crypto] # type: ignore owners = [ ledger_api.api.to_checksum_address(owner_crypto.address)