-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support zksync #7
base: main
Are you sure you want to change the base?
Support zksync #7
Conversation
src/MultiClaimsHatterFactory.sol
Outdated
|
||
contract MultiClaimsHatterFactory { | ||
// should the version be higher here | ||
string public constant VERSION = "0.6.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.6.0-zkysnc
src/MultiClaimsHatterFactory.sol
Outdated
// should the version be higher here | ||
string public constant VERSION = "0.6.0"; | ||
|
||
event HatsModuleFactory_ModuleDeployed( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove prefix
src/MultiClaimsHatterFactory.sol
Outdated
string public constant VERSION = "0.6.0"; | ||
|
||
event HatsModuleFactory_ModuleDeployed( | ||
address implementation, address instance, uint256 hatId, bytes otherImmutableArgs, bytes initData, uint256 saltNonce |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unused arguments
test/MultiClaimsHatter.t.sol
Outdated
vm.expectEmit(); | ||
emit HatsClaimabilitySet(initialHats, initialClaimTypes); | ||
// vm.expectEmit(); | ||
// emit HatsClaimabilitySet(initialHats, initialClaimTypes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commented out
vm.expectRevert("Initializable: contract is already initialized"); | ||
instance.setUp(""); | ||
} | ||
// Returns nothing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialization should be added back
* Updated dependency to support-zksync HatsModule
script/DeployMultiClaimsHatter.ts
Outdated
const SALT_NONCE = 1; | ||
const FACTORY_ADDRESS = "0x1e8C2a171e5c5D92d15F5363fd136CAf3bBf86E2" | ||
// What does this need to be? | ||
// const INIT_DATA = "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000030000000100010001000000000000000000000000000000000000000000000000000000010001000100010000000000000000000000000000000000000000000000000001000100010001000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build init data without claimable hat, setting overall configuration for the instance, and not making any individual hats setting.
Description