Working on learning from the OpenZeppelin tutorial page:
(Solidity 0.6.2. Buidler 1.4.8. Node v15.0.1. Ubuntu 20.04.1 LTS.)
Using Buidler tutorial mode (not Truffle mode)
During final line of code to execute in the section: “Sending a Transaction”, when changing state of box to “23”, received the error copied below.
It appears to me that the tutorial suddenly switches to using “npx truffle exec” instead of “npx buidler run.” Could be misunderstanding this, but I did not succeed in returning “23” when using the command given.
I did succeed by running “npx buidler run.”
Code to reproduce
// Send a transaction to store() a new value in the Box
// Call the retrieve() function of the deployed Box contract
const value = await box.retrieve();
console.log(“Box value is”, value.toString());
user@local:~/testdirectory$ npx truffle exec --network development ./scripts/index.js
ExtendableError: Could not find suitable configuration file.
at Function.detect (/home/user/testdirectory/node_modules/truffle/build/webpack:/packages/config/dist/index.js:148:1)
at Object.Run (…)
at Command.run (…)
npm err! code 1
npm err! path /home/user/testdirectory
npm err! command failed
npm err! command sh -c truffle exec --network development ./scripts/index.js
Perhaps I do not understand how to run both Truffle and Buidler in parallel?
I have been under the impression that their respective contract syntaxes hold some differences and require a little migration between.
I deeply appreciate the incredible documentation provided by the OpenZeppelin team.
I feel like I have learned the most about solidity in the least amount of time with the least trouble in the past 24 hours. Thank you all again.