Hi everyone, I am trying to do some really simple compile and deploy with truffle but run into this error:
Error: The requested contract was not found. Make sure the source code is available for compilation
at getContractNameAndRunValidation (D:\solidity\LilNifty-contracts\node_modules\@openzeppelin\upgrades-core\src\validate\query.ts:46:11)
at Object.getStorageLayout (D:\solidity\LilNifty-contracts\node_modules\@openzeppelin\upgrades-core\src\validate\query.ts:54:41)
at Object.deployImpl (D:\solidity\LilNifty-contracts\node_modules\@openzeppelin\truffle-upgrades\src\utils\deploy-impl.ts:32:18)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at deployProxy (D:\solidity\LilNifty-contracts\node_modules\@openzeppelin\truffle-upgrades\src\deploy-proxy.ts:46:16)
at module.exports (D:\solidity\LilNifty-contracts\migrations\2_Nifty_Proxy_deployment.js:6:3)
at Migration._deploy (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:80:1)
at Migration._load (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:61:1)
at Migration.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:218:1)
at Object.runMigrations (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
at Object.runFrom (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
at Object.runAll (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:114:1)
at Object.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\migrate\index.js:79:1)
at runMigrations (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:258:1)
at Object.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:223:1)
at Command.run (C:\Users\sound\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\core\lib\command.js:167:1)
Never had it before, but running into this since two days, Trying to setup an erc1155 upgradeable project.
Environment
Truffle v5.3.14
Node.js v16.3.0
“@openzeppelin/contracts-upgradeable”: “^4.2.0”,
“@openzeppelin/truffle-upgrades”: “^1.8.0”
package.json
{
"dependencies": {
"@openzeppelin/contracts-upgradeable": "^4.2.0",
"@openzeppelin/truffle-upgrades": "^1.8.0"
},
"name": "lilnifty-contracts",
"description": "",
"version": "1.0.0",
"main": "truffle-config.js",
"directories": {
"test": "test"
},
"devDependencies": {
"mocha": "^8.1.2",
"truffle": "^5.3.14"
},
"scripts": {
"test": "mocha"
},
"repository": {
"type": "git",
"url": "git+https://github.com/LilNifty/LilNifty-contracts.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/LilNifty/LilNifty-contracts/issues"
},
"homepage": "https://github.com/LilNifty/LilNifty-contracts#readme"
}
Anyone have a clue how to fix this?