Skip to content

Wrong require in Cairo example #365

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");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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