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

boa.eval fails when the returned value type is an interface #316

Open
AlbertoCentonze opened this issue Sep 23, 2024 · 2 comments
Open

boa.eval fails when the returned value type is an interface #316

AlbertoCentonze opened this issue Sep 23, 2024 · 2 comments

Comments

@AlbertoCentonze
Copy link
Contributor

given some interface IFoo.vyi

And given an instance my_contract of the following contract:

import IFoo

def bar() -> IFoo:
    return IFoo(<some addr>)

calling bar in the following contract through my_contract.eval("self.bar") fails.

The problem can be circumvented by doing my_contract.eval("self.bar.address") as a temporary workaround but there are instances where this is not possible.

@charles-cooper
Copy link
Member

what commit of titanoboa are you on?

@AlbertoCentonze
Copy link
Contributor Author

AlbertoCentonze commented Sep 23, 2024

what commit of titanoboa are you on?

f1051f4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants