Closed Solexplorer closed 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
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
.
relative paths are not supported yet: https://github.com/ethereum/vyper/issues/1367
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:
It's not recognizing the point even though, it has been specified that using the
.
is supported