Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
use oz5.0 libraries (#9)
Browse files Browse the repository at this point in the history
* use oz5.0 libraries

* fix init

* empty

* use locked deps; legacy peer deps

* import Base64 from openzeppelin
  • Loading branch information
coffeexcoin authored Oct 30, 2024
1 parent c1f887a commit d4c548b
Show file tree
Hide file tree
Showing 27 changed files with 40 additions and 2,811 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-node@v4
- name: Install dependencies
run: |
npm install
npm ci --legacy-peer-deps
- name: Build
run: |
npm run compile
Expand Down
2 changes: 1 addition & 1 deletion contracts/AccountFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract AccountFactory is Ownable {
address _registry,
bytes32 _proxyBytecodeHash,
address _deployer
) Ownable() {
) Ownable(msg.sender) {
implementationAddress = _implementation;
registry = _registry;
proxyBytecodeHash = _proxyBytecodeHash;
Expand Down
3 changes: 2 additions & 1 deletion contracts/ClaveImplementation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ contract ClaveImplementation is
address initialK1Validator,
bytes[] calldata modules,
Call calldata initCall
) public {
) public initializer {
__ERC1271Handler_init();
// check that this account is being deployed by the initial signer or the factory authorized deployer
AccountFactory factory = AccountFactory(msg.sender);
address thisDeployer = factory.accountToDeployer(address(this));
Expand Down
2 changes: 1 addition & 1 deletion contracts/ClaveRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ contract ClaveRegistry is Ownable, IClaveRegistry {
event FactoryUnset(address indexed factory);

// Constructor function of the contracts
constructor() Ownable() {}
constructor() Ownable(msg.sender) {}

/**
* @notice Registers an account as a Clave account
Expand Down
289 changes: 0 additions & 289 deletions contracts/cns/ClaveNameService.sol

This file was deleted.

19 changes: 0 additions & 19 deletions contracts/cns/IClaveNameService.sol

This file was deleted.

28 changes: 0 additions & 28 deletions contracts/earn/ClaveEarnRouter.sol

This file was deleted.

Loading

0 comments on commit d4c548b

Please sign in to comment.