Skip to content
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

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

alexkeating
Copy link

Description


contract MultiClaimsHatterFactory {
// should the version be higher here
string public constant VERSION = "0.6.0";
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.6.0-zkysnc

// should the version be higher here
string public constant VERSION = "0.6.0";

event HatsModuleFactory_ModuleDeployed(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove prefix

string public constant VERSION = "0.6.0";

event HatsModuleFactory_ModuleDeployed(
address implementation, address instance, uint256 hatId, bytes otherImmutableArgs, bytes initData, uint256 saltNonce
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unused arguments

vm.expectEmit();
emit HatsClaimabilitySet(initialHats, initialClaimTypes);
// vm.expectEmit();
// emit HatsClaimabilitySet(initialHats, initialClaimTypes);
Copy link
Author

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
Copy link
Author

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

const SALT_NONCE = 1;
const FACTORY_ADDRESS = "0x1e8C2a171e5c5D92d15F5363fd136CAf3bBf86E2"
// What does this need to be?
// const INIT_DATA = "0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000030000000100010001000000000000000000000000000000000000000000000000000000010001000100010000000000000000000000000000000000000000000000000001000100010001000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001"
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants