Skip to content

Commit

Permalink
fix: github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Oct 15, 2024
1 parent 59a97c4 commit 8e6931e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Vyper
run: pip install vyper==0.3.7

Expand Down
2 changes: 0 additions & 2 deletions script/BaseScript.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ abstract contract BaseScript is Script {

Deployer public deployer = Deployer(0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed);

address public v3Safe = 0x33333333D5eFb92f19a5F94a43456b3cec2797AE;

address public initGov = 0x6f3cBE2ab3483EC4BA7B672fbdCa0E9B33F88db8;
}
5 changes: 2 additions & 3 deletions script/DeployAprOracle.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ contract DeployAprOracle is BaseScript {
vm.startBroadcast();

// Encode constructor arguments
bytes memory construct = abi.encode(v3Safe);
bytes memory construct = abi.encode(initGov);

// Get the bytecode
bytes memory bytecode = abi.encodePacked(vm.getCode("AprOracle.sol:AprOracle"), construct);

// Pick an unique salt
bytes32 salt = keccak256("APR Oracle");
bytes32 salt;

address contractAddress = deployer.deployCreate2(salt, bytecode);

Expand Down

0 comments on commit 8e6931e

Please sign in to comment.