Skip to content

Commit

Permalink
fix: downgrade oz
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Feb 23, 2024
1 parent 9f38086 commit e44cbf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

cd tokenized-strategy-ape-mix

### Set up your virtual enviorment
### Set up your virtual environment

python3 -m venv venv

Expand All @@ -30,7 +30,7 @@

ape test

### Set your enviorment Variables
### Set your environment Variables

export WEB3_INFURA_PROJECT_ID=your_infura_api_key

Expand All @@ -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.
4 changes: 2 additions & 2 deletions ape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit e44cbf0

Please sign in to comment.