7

I'm writing unit test in remix-ide and I want to call functions from different addresses within a single test.

The remix-tests Github page says that you can use import "remix_accounts.sol";, but I get URL not parseable: remix_accounts.sol. How to fix that? Or maybe there's another way to call from various addresses?

Uberswe
  • 1,038
  • 2
  • 16
  • 36
Arterm
  • 171
  • 2

1 Answers1

1

Import files with relative paths, in your case, modify the following

import "remix_accounts.sol";

to

import "./remix_accounts.sol";

Also, notice that remix doesn't allow import from an ancestor directory, for example:

import "../remix_accounts.sol";
StillFantasy
  • 1,677
  • 9
  • 21