dfx deploy icrc1_ledger_canister --network ic --argument “(variant { Init =
record {
token_symbol = "BELLA";
token_name = "BELLA";
minting_account = record { owner = principal "${MINTER}" };
transfer_fee = 1;
metadata = vec {};
feature_flags = opt record{icrc2 = ${FEATURE_FLAGS}};
initial_balances = vec { record { record { owner = principal "${DEFAULT}"; }; 100_000_000_000_000; }; };
archive_options = record {
num_blocks_to_archive = 1000;
trigger_threshold = 2000;
controller_id = principal "${MINTER}";
};
}
})”
I am not experiencing any issues with deployment on my local network; the problem arises only when deploying on the IC network. It’s worth noting that I have previously deployed a ledger with the same name, which could potentially be the cause of the issue. For instance, when I deploy an ICP ledger that I haven’t deployed before, no errors occur.
The error :
Deploying: icrc1_ledger_canister
All canisters have already been created.
Building canisters…
WARN: .did file for canister ‘internet_identity’ does not exist.
WARN: .did file for canister ‘icp_index_canister’ does not exist.
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed to build all canisters.
Failed while trying to build all canisters.
Failed while trying to build all canisters in the canister pool.
Failed to build dependencies graph for canister pool.
Failed to get dependencies for canister ‘mercx_frontend’.
Failed to create AssetBuilderExtra for canister ‘mercx_frontend’.
Failed to collect dependencies (canister ids) of canister mercx_frontend.
A canister with the name ‘icp_ledger_canister’ was not found in the current project.