Skip to content

Commit

Permalink
Update parameter order
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Jul 5, 2024
1 parent 396e1e3 commit 0096f4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions contracts/DecentHats.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ contract DecentHats {
}

IHats public hats;
address public keyValuePairs;
IERC6551Registry public registry;
address public hatsAccountImplementation;
IERC6551Registry public registry;
address public keyValuePairs;

bytes32 public constant SALT = keccak256("DecentHats");

constructor(
IHats _hats,
address _keyValuePairs,
address _hatsAccountImplementation,
IERC6551Registry _registry,
address _hatsAccountImplementation
address _keyValuePairs
) {
hats = _hats;
keyValuePairs = _keyValuePairs;
registry = _registry;
hatsAccountImplementation = _hatsAccountImplementation;
registry = _registry;
keyValuePairs = _keyValuePairs;
}

function createAndDeclareTree(
Expand Down
4 changes: 2 additions & 2 deletions test/DecentHats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ describe("DecentHats", () => {
await mockHatsAccountImplementation.getAddress();
decentHats = await new DecentHats__factory(deployer).deploy(
mockHatsAddress,
await keyValuePairs.getAddress(),
mockHatsAccountImplementationAddress,
await erc6551Registry.getAddress(),
mockHatsAccountImplementationAddress
await keyValuePairs.getAddress()
);
decentHatsAddress = await decentHats.getAddress();

Expand Down

0 comments on commit 0096f4a

Please sign in to comment.