Skip to content

Use fixed salt to deploy Comptroller on same address across chains #45

@smol-ninja

Description

@smol-ninja

We might need to change code of salt generation in

function constructCreate2Salt() public view virtual returns (bytes32) {
string memory chainIdStr = vm.toString(chainId);
string memory version = getVersion();
string memory create2Salt = string.concat("ChainID ", chainIdStr, ", Version ", version);
return bytes32(abi.encodePacked(create2Salt));

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: lowEasy or tiny task that takes less than a day.priority: 1This is important. It should be dealt with shortly.type: featureNew feature or request.work: clearSense-categorize-respond. The relationship between cause and effect is clear.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions