Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip: implement methods for structs #4041

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 21, 2024

  1. wip: implement methods for structs

    test contract:
    ```
    struct Foo:
        user: address
        balance: uint256
    
        def decrement_balance(self, amount: uint256):
            self.balance -= amount
    
    @external
    def foo(f: Foo):
        s: Foo = f
        s.decrement_balance(1)
    ```
    charles-cooper committed May 21, 2024
    Configuration menu
    Copy the full SHA
    d94f548 View commit details
    Browse the repository at this point in the history