Environment
Truffle v5.1.5 (core: 5.1.5)
Solidity - 0.6.0 (solc-js)
Node v12.18.2
Web3.js v1.2.1
Details
I’m following the Smart Contract Upgrade tutorial from the docs - https://docs.openzeppelin.com/learn/upgrading-smart-contracts and encountered a bug while running the truffle migrate on the development network. This is after adding the deployProxy function to the migration. Prior to that the contracts deployment was successful.
Error Log:
Error: Global Truffle config not found: Truffle >=5.1.35 is required. Truffle exec not yet supported
at Object.getTruffleConfig (/home/saru/round/contract-upgrade/node_modules/@openzeppelin/truffle-upgrades/src/truffle.ts:86:11)
at deployProxy (/home/saru/round/contract-upgrade/node_modules/@openzeppelin/truffle-upgrades/src/deploy-proxy.ts:44:62)
at module.exports (/home/saru/round/contract-upgrade/migrations/2_deploy_box.js:6:26)
at Migration._load (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/migration.js:56:1)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Migration.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/migration.js:167:1)
at Object.runMigrations (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:148:1)
at Object.runFrom (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
at Object.runAll (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:114:1)
at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:79:1)
at runMigrations (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:253:1)
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:218:1
Code to reproduce
Steps followed: -
npm init
truffle init
npm install --save-dev @openzeppelin/truffle-upgrades
truffle migrate --reset --network development
As my truffle version is greater than the required, which should not result in the aforementioned error, am I missing something here?