Skip to content

Commit

Permalink
(fix): entrypoint for custom-base-token
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid Ateir committed Jan 31, 2025
1 parent 4541955 commit 276033b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docker/local-node/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ if [ -z "$MASTER_URL" ]; then
--ignore-prerequisites --verbose \
--observability=false \
--update-submodules=false

# start server
zkstack server
else
zkstack chain create \
--chain-name custom_token \
--chain-id sequential \
--chain-id 275 \
--prover-mode no-proofs \
--wallet-creation localhost \
--l1-batch-commit-data-generator-mode rollup \
Expand Down Expand Up @@ -116,7 +119,6 @@ else
# echo >&2 "Master zksync not ready yet, sleeping"
# sleep 5
# done
fi

# start server
zkstack server
# start server
zkstack server --chain custom_token
fi
3 changes: 3 additions & 0 deletions zkstack_cli/crates/common/src/ethereum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use ethers::{
providers::Middleware,
types::{Address, TransactionRequest},
};
use tokio::time::sleep;
use zkstack_cli_types::TokenInfo;

use crate::{logger, wallets::Wallet};
Expand Down Expand Up @@ -102,6 +103,8 @@ pub async fn mint_token(

let mut pending_txs = vec![];
for call in &pending_calls {
sleep(Duration::from_secs(2)).await; // ✅ Wait for 2 seconds

let call = call.send().await;
match call {
// It's safe to set such low number of confirmations and low interval for localhost
Expand Down

0 comments on commit 276033b

Please sign in to comment.