I’m trying to figure it out how I can turn one of the canisters defined in dfx.json
(accounts) as the minter (based on its principal) for my ledger ICRC-1 also defined in the same file. The goal is to mint some new tokens every time a new account is created.
The thing is: When I run dfx deploy
, all the canisters defined in dfx.json
are created so I cannot know the principal for the minter and, I cannot inject it as an init parameter for the icrc-1 canister.
Is this a correct approach / good practice?
Apart from that, is there any way to define env vars in the files injected through init_arg_file
? Something like:
Best regards!