Skip to content

auction contract example opt_in method doesn't have opt_in allow actions #307

@iskysun96

Description

@iskysun96

Subject of the issue

@arc4.abimethod

The opt_in method should have the allow_actions=['OptIn']. Without it, app caller won't be opted in to the contract.

Change code from:

@arc4.abimethod()
def opt_in(self) -> None:
    pass

to

    @arc4.abimethod(allow_actions=["OptIn"])
    def opt_in(self) -> None:
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions