Skip to content

Wrong require in Cairo example #365

Open
@fontanellag

Description

@fontanellag

Within the example in https://github.com/crytic/building-secure-contracts/tree/master/not-so-smart-contracts/cairo/unchecked_from_address_in_l1_handler the require in setOwnerOnL2() should be:

 require(OWNER == msg.sender, "not owner");

instead of

 require(owner == msg.sender, "not owner");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions