Skip to content

Commit

Permalink
chore: update Prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlak committed Sep 1, 2023
1 parent 2a37c0c commit aa3d34b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/Prepare.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "forge-std/Script.sol";
import "solmate/tokens/WETH.sol";
import "nugu/NuguFactory.sol";

import "../contracts/test/SimpleRegistry.sol";
import "../contracts/PortfolioRegistry.sol";
import "../contracts/Portfolio.sol";
import "../contracts/PositionRenderer.sol";

Expand Down Expand Up @@ -42,7 +42,14 @@ contract Deploy is Script {
function run() external {
bytes memory registryDeployData = abi.encodeCall(
NuguFactory.deploy,
(REGISTRY_SALT, type(SimpleRegistry).creationCode, 0)
(
REGISTRY_SALT,
abi.encodePacked(
type(PortfolioRegistry).creationCode,
abi.encode(SAFE_ADDRESS)
),
0
)
);

bytes memory positionRendererDeployData = abi.encodeCall(
Expand Down

0 comments on commit aa3d34b

Please sign in to comment.