Public let WALLET_CANISTER_ID = & public let ADMIN LIST

I have a .mo file where in the util.mo there is the following code

module {

public let DECIMALS : Nat = 18;

public let CANISTER_NUMBER : Nat = 5;

public let WALLET_CANISTER_ID = “-5aaaa--aacrq-cai”;

public let ADMIN_LIST : [Text] = [“19fc7bf234cf05e376631ad896163558174c375f6e”];

Now, should I be putting the account Id of the wallet I want to be the controller under ADMIN_LIST?

Would I find the canister that controls said waller and put it under WALLET_CANISTER_ID?

Hi,

Tip: the code in your message would be a lot more readable if you put it in tripple backticks “`” at the top and bottom of the message;

module {
  public let DECIMALS : Nat = 18;
  public let CANISTER_NUMBER : Nat = 5;
  public let WALLET_CANISTER_ID = “-5aaaa--aacrq-cai”;
  public let ADMIN_LIST : [Text] = [“19fc7bf234cf05e376631ad896163558174c375f6e”];

Regarding your question;
if you want to keep an admin list on the canister I would always want to use the principal.
The main reason is that the caller is a principal ex;

public shared ({ caller }) func foo() : async () {}

Right now you’ve specified an accountIdentifier in the ADMIN_LIST, but this could also be derived from the principal + subaccount. But not the other way around (principal from accountIdentifier).

1 Like

Ok, so this id is just for an admin wallet and is separate from the id used in like, a controller.mo with a whitelisted principle id field