TestMetaCoin
Error: TestMetaCoin contains unresolved libraries. You must deploy and link the following libraries before you can deploy a new version of TestMetaCoin: ConvertLib
at Function.checkLibraries (/Users/cgewecke/.nvm/versions/node/v10.15.3/lib/node_modules/truffle/build/webpack:/packages/truffle-contract/lib/utils.js?873b:199:1)
at execute.prepareCall.then (/Users/cgewecke/.nvm/versions/node/v10.15.3/lib/node_modules/truffle/build/webpack:/packages/truffle-contract/lib/execute.js?5165:218:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
Error: TestMetaCoin contains unresolved libraries. You must deploy and link the following libraries before you can deploy a new version of TestMetaCoin: ConvertLib
at Function.checkLibraries (/Users/cgewecke/.nvm/versions/node/v10.15.3/lib/node_modules/truffle/build/webpack:/packages/truffle-contract/lib/utils.js?873b:199:1)
at execute.prepareCall.then (/Users/cgewecke/.nvm/versions/node/v10.15.3/lib/node_modules/truffle/build
const truffle = require("truffle");
Beginning with v5.0.30
, Truffle exports the methods listed in truffle-core/index.js. This means
your plugin can consume the user's Truffle instance as a library and access a subset of its internal command APIs.
These are useful if you need to touch several Truffle commands in succession. For example, imagine a plugin that evaluated how a contract system performed at different levels of solc optimization. Its workflow might look like:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting migrations... | |
====================== | |
> Network name: 'development' | |
> Network id: 1337 | |
> Block gas limit: 7000000 | |
1_initial_migration.js | |
====================== | |
> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/extralib.sol... | |
Compilation warnings encountered: | |
/private/var/folders/_p/1jdl7zfx1473cwzhqsz8gx4r0000gn/T/tmp-38535ESsKAygkULcz/node_modules/@org/pkg/contracts/Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. | |
function Migrations() public { | |
^ (Relevant source part starts here and spans across multiple lines). | |
Writing artifacts to ./build/contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/extralib2.sol... | |
Compiling ./contracts/extraotherlib2.sol... | |
Compiling @org/pkg/contracts/extralib.sol... | |
Compilation warnings encountered: | |
/private/var/folders/_p/1jdl7zfx1473cwzhqsz8gx4r0000gn/T/tmp-38517cujv2dLeNLkl/node_modules/dep2/contracts/Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. | |
function Migrations() public { | |
^ (Relevant source part starts here and spans across multiple lines). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Migrations dry-run (simulation) | |
=============================== | |
> Network name: 'ropsten-fork' | |
> Network id: 3 | |
1_initial_migration.js | |
====================== | |
Deploying 'Migrations' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Abstract.sol... | |
Compiling ./contracts/Example.sol... | |
Compiling ./contracts/ExampleAssert.sol... | |
Compiling ./contracts/ExampleRevert.sol... | |
Compiling ./contracts/Loops.sol... | |
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/RevertWithReason.sol... | |
Compiling ./contracts/UsesExample.sol... | |
Writing artifacts to ./build/contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Abstract.sol... | |
Compiling ./contracts/Example.sol... | |
Compiling ./contracts/ExampleAssert.sol... | |
Compiling ./contracts/ExampleRevert.sol... | |
Compiling ./contracts/Loops.sol... | |
Compiling ./contracts/Migrations.sol... | |
Compiling ./contracts/RevertWithReason.sol... | |
Compiling ./contracts/UsesExample.sol... | |
Writing artifacts to ./build/contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ./contracts/Example.sol... | |
Compiling ./contracts/Migrations.sol... | |
Writing artifacts to ./build/contracts | |
Migrations dry-run (simulation) | |
=============================== | |
> Network name: 'ropsten-fork' | |
> Network id: 1337 |