Skip to content

Prevent Submit Solutions Twice #1

Description

@dusmart

Solutions can be deployed multiple times and have the same id (same creationcode with params && same salt && same deploy address) while the runtimecode can be changed. See create2 for more details especially the Warning part.

Therefore, we'd better prevent someone from submitting twice. A simple record for submitting before deployment should be ok.

function submit_code(bytes memory code) external {
Create2Upgradeable.deploy(0, 0, code);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions