Skip to content

Level 21: Shop - replace view with pure in Buyer interface #357

@gwisp2

Description

@gwisp2

A call of pure functions generates the same bytecode as a call of view functions, pureness is not actually enforced in runtime.
A person who solves Ethernaut should learn about this, so I consider replacing view with pure in Buyer interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions