Buidler plugin for integration with TruffleContract from Truffle 5
This plugin brings to Buidler TruffleContracts from Truffle 5. With it you can call
artifacts.require() like you normally would with Truffle. Interact with your contracts with a familiar API from tasks, scripts and tests.
npm install @nomiclabs/buidler-truffle5 firstname.lastname@example.org
And add the following require to the top of your
This plugin creates no additional tasks.
An instance of
TruffleEnvironmentArtifacts is injected into
env.artifacts and the method
contract() is injected into the global scope for using in tests.
There are no additional steps you need to take for this plugin to work. Install it, run
npx buidler test and your Truffle tests should run with no need to make any modifications.