Skip to content

ContractWithModifier.sol has two issues: (1) uses incorrect way to call modifier, and (2) forgets to use modifier #3

@zallanx

Description

@zallanx

The following code has errors (comments added to show)

function AssignDoubleValue(int _data) public isOwner { //should be called as isOwner()
        mydata = _data * 2;
}

function AssignTenerValue(int _data) public  { //forgot to call isOwner()
        mydata = _data * 10;
}

Author should update the code to reflect errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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