Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Limechain] Fix contract deployment problem #8

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
# Not mounting any volumes for now as this is a sample devnet so no need to persist data
command: >
--dev
--dev.period 1
--http
--http.addr 0.0.0.0
--http.port 8545
Expand Down
5 changes: 1 addition & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ npm install
echo "Compiling, testing and deploying the contract..."
npx hardhat compile
npx hardhat test
yes | npx hardhat ignition deploy ./ignition/modules/Lock.js --network local

# Keep the container running
tail -f /dev/null
yes | npx hardhat ignition deploy ./ignition/modules/Lock.js --network local --verbose
5 changes: 4 additions & 1 deletion hardhat/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module.exports = {
solidity: "0.8.24",
networks: {
local: {
url: "http://127.0.0.1:8545"
url: "http://127.0.0.1:8545",
ignition: {
requiredConfirmations: 1,
}
}
},
};