From 6b5fe61e05a953592f6697516015faf0ed088c76 Mon Sep 17 00:00:00 2001 From: Diogo Ribeiro Date: Fri, 25 Feb 2022 14:45:00 +0000 Subject: [PATCH] Fixed according to PR review --- test/test_postman.py | 3 ++- test/web3_util.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/test_postman.py b/test/test_postman.py index 8fcdbc9fe..6774bd69c 100644 --- a/test/test_postman.py +++ b/test/test_postman.py @@ -21,11 +21,12 @@ CONTRACT_PATH = f"{ARTIFACTS_PATH}/l1l2.cairo/l1l2.json" ABI_PATH = f"{ARTIFACTS_PATH}/l1l2.cairo/l1l2_abi.json" -ETH_CONTRACTS_PATH = "starknet-hardhat-example/artifacts/contracts" +ETH_CONTRACTS_PATH = "../starknet-hardhat-example/artifacts/contracts" STARKNET_MESSAGING_PATH = f"{ETH_CONTRACTS_PATH}/MockStarknetMessaging.sol/MockStarknetMessaging.json" L1L2_EXAMPLE_PATH = f"{ETH_CONTRACTS_PATH}/L1L2.sol/L1L2Example.json" def pytest_configure(): + """Set globals""" pytest.L1L2_EXAMPLE_CONTRACT = None pytest.STARKNET_MESSAGING_CONTRACT = None pytest.L2_CONTRACT_ADDRESS = None diff --git a/test/web3_util.py b/test/web3_util.py index d7eaa4bb7..3f658d4b3 100644 --- a/test/web3_util.py +++ b/test/web3_util.py @@ -1,9 +1,7 @@ """Util functions for invoking and calling Web3 contracts""" -from solcx import compile_source from web3 import Web3 - def web3_deploy(web3: Web3, contract, *inputs): """Deploys a Solidity contract""" abi=contract['abi']