vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.85k stars 793 forks source link

Can't import a contract Interface #1471

Closed Solexplorer closed 5 years ago

Solexplorer commented 5 years ago

I want to import a contract interface using the JSON ABI as specified here . The JSON is located in my repo here: https://github.com/Solexplorer/sablier/blob/master/packages/contracts-vyper/contracts/IERC1620.json

What I am trying to do is importing the JSON file inside my contract like this: import .IERC1620 as foobar

This code gives me this exception error:

  File "<unknown>", line 1
    import .IERC1620 as foobar
           ^
SyntaxError: invalid syntax

It's not recognizing the point even though, it has been specified that using the . is supported

Solexplorer commented 5 years ago

relative paths are not supported yet: https://github.com/ethereum/vyper/issues/1367