-
-
Notifications
You must be signed in to change notification settings - Fork 887
imported types cannot be used in call position #3943
Copy link
Copy link
Closed
Labels
bug - UXa bug related to UXa bug related to UXbug - type 0compiler halts or panics instead of generating codecompiler halts or panics instead of generating coderelease - mustrelease blockerrelease blocker
Milestone
Description
Version Information
- vyper Version (output of
vyper --version): cb94068
What's your issue about?
the following doesn't compile:
# lib1.vy
from ethereum.ercs import IERC20# main.vy
import lib1
@external
def foo(x: address):
s: uint256 = staticcall lib1.IERC20(msg.sender).balanceOf(x)fails with something like the following:
vyper.exceptions.StructureException: interface vyper/builtins/interfaces/IERC20.vyi is not callable
contract "tmp/main.vy:12", function "foo", line 12:28
11 def foo(x: address):
---> 12 s: uint256 = staticcall lib1.IERC20(msg.sender).balanceOf(x)
------------------------------------^
13Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug - UXa bug related to UXa bug related to UXbug - type 0compiler halts or panics instead of generating codecompiler halts or panics instead of generating coderelease - mustrelease blockerrelease blocker