Skip to content

Commit

Permalink
Update basic-testing.rst (TrueFiEng#163)
Browse files Browse the repository at this point in the history
Original documentation was different from how it actually worked
  * full path -> path relative to the root of the project
  * example included '/' rather than ':' after the file path
  • Loading branch information
YoonjaeYoo authored and marekkirejczyk committed Dec 19, 2019
1 parent 43ad01a commit e24cfd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/basic-testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ Link a library:
::

myLibrary = await deployContract(wallet, MyLibrary, []);
link(LibraryConsumer, 'path/to/file/MyLibrary.sol/MyLibrary', myLibrary.address);
link(LibraryConsumer, 'contracts/MyLibrary.sol:MyLibrary', myLibrary.address);
libraryConsumer = await deployContract(wallet, LibraryConsumer, []);

Note: Note: As the second parameter of the link function, you need to use a fully qualified name (full path to file, followed by a colon and the contract name).
Note: Note: As the second parameter of the link function, you need to use a fully qualified name (path to the file relative to the root of the project, followed by a colon and the contract name).

0 comments on commit e24cfd4

Please sign in to comment.