titanoboa icon indicating copy to clipboard operation
titanoboa copied to clipboard

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

Open AlbertoCentonze opened this issue 5 months ago • 2 comments

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.

AlbertoCentonze avatar Sep 23 '24 14:09 AlbertoCentonze