From e44cbf057d84181d958b29b964bcae998e8d0031 Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Thu, 22 Feb 2024 17:53:57 -0700 Subject: [PATCH] fix: downgrade oz --- README.md | 9 ++++----- ape-config.yaml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1002529..db5fe6d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ cd tokenized-strategy-ape-mix -### Set up your virtual enviorment +### Set up your virtual environment python3 -m venv venv @@ -30,7 +30,7 @@ ape test -### Set your enviorment Variables +### Set your environment Variables export WEB3_INFURA_PROJECT_ID=your_infura_api_key @@ -43,11 +43,10 @@ Deployment of periphery contracts such as the [Registry Factory](https://github. This can be done permissionlessly if the most recent contract has not yet been deployed on a chain you would like to use it on. 1. [Add an Ape account](https://docs.apeworx.io/ape/stable/commands/accounts.html) -2. Go to the contracts specific deployment script under `scripts/` and add your account name to the `accounts.load("you_acct_name")` at the top of the script. -3. Run the deployment script +2. Run the deployment the contracts specific deployment script under `scripts/` ```sh ape run scripts/deploy_contract_name.py --network YOUR_RPC_URL ``` - For chains that don't support 1559 tx's you may need to add a `type="0x0"` argument at the end of the deployment tx. - - ie `tx = deployer_contract.deploy(bytecode, salt, sender=deployer, type="0x0")` + - ie `tx = deployer_contract.deployCreate2(salt, init_code, sender=deployer, type="0x0")` 3. The address the contract was deployed at will print in the console and should match any other chain the same version has been deployed on. \ No newline at end of file diff --git a/ape-config.yaml b/ape-config.yaml index 1485aab..b4085b8 100644 --- a/ape-config.yaml +++ b/ape-config.yaml @@ -17,7 +17,7 @@ default_ecosystem: ethereum dependencies: - name: openzeppelin github: OpenZeppelin/openzeppelin-contracts - ref: 4.8.2 + ref: 4.7.3 - name: yearn-vaults github: yearn/yearn-vaults-v3 @@ -41,7 +41,7 @@ dependencies: solidity: import_remapping: - - "@openzeppelin/contracts=openzeppelin/v4.8.2" + - "@openzeppelin/contracts=openzeppelin/v4.7.3" - "@yearn-vaults=yearn-vaults/v3.0.1" - "@tokenized-strategy=tokenized-strategy/v3.0.1" - "@periphery=periphery/master"