New answers tagged

0

Clearly, if you have installed truffle globally (npm install -g truffle), you will need to provide the full path of that directory e.g.: "program": "/usr/local/lib/node_modules/truffle/build/cli.bundled.js"


0

Something I've done in the past is create a separate 'Stub' contract. So if you want to stub contract B, you create another contract BStub that inherits from B and override its methods to return some mock values instead. Then you initialise your A contract with a dependency on BStub instead of B. This has some drawbacks (like unavailability of private ...


Top 50 recent answers are included