You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I just started using the fantastic dApp-launchpad tool to develop a dapp, however when I add my smart contract to the smart contracts folder, and i run the dev environment, my contract doesn't get deployed. but the "wall" contract used as sample gets deployed correctly.
I tried to deploy the contracts using the hardhat cli (npx hardhat run script ./script/deploy...) and it worked just fine (which means the error is not related to the contract itself), but when I try to run dev only the "Wall" contract gets deployed and added to the constants/smart-contracts-development.json file
Output
[19:06] > Deploying smart contracts on local chain
[19:06] ✔ Contract deployed: WALL -> 0x5fbdb2315678afecb367f032d93f642f64180aa3
[19:06] > Starting frontend dev server...
Is this problem related to some config that I don't know or is it an issue ?
Edit :
I noticed that contracts with constructor args doesn't get deployed by adding a constructor with 1arg to the Wall contract, and it didn't get deployed. So the scope of the problem is contracts with constructor arguments.
The text was updated successfully, but these errors were encountered:
so-high-l
changed the title
Issue on smart contract deployment to local chain
Issue on smart contract deployment with constructor args to local chain
Jun 25, 2024
Weird. If you do a manual npx hardhat run --network localhost ./scripts/deploy_localhost.ts (which is what launchpad does internally), it runs successfully. However, it "breaks" something, you can no longer interact with the contract from the front end.
Edit: it's probably because it does a comparison of artifacts and deployed contracts by bytecode, and they won't be the same if using constructor arguments, I think.
Hello,
I just started using the fantastic dApp-launchpad tool to develop a dapp, however when I add my smart contract to the smart contracts folder, and i run the dev environment, my contract doesn't get deployed. but the "wall" contract used as sample gets deployed correctly.
I tried to deploy the contracts using the hardhat cli (npx hardhat run script ./script/deploy...) and it worked just fine (which means the error is not related to the contract itself), but when I try to run dev only the "Wall" contract gets deployed and added to the constants/smart-contracts-development.json file
this is my deploy_localhost.js
Output
[19:06] > Deploying smart contracts on local chain
[19:06] ✔ Contract deployed: WALL -> 0x5fbdb2315678afecb367f032d93f642f64180aa3
[19:06] > Starting frontend dev server...
Is this problem related to some config that I don't know or is it an issue ?
Edit :
I noticed that contracts with constructor args doesn't get deployed by adding a constructor with 1arg to the Wall contract, and it didn't get deployed. So the scope of the problem is contracts with constructor arguments.
The text was updated successfully, but these errors were encountered: