ICRC1 provides the change_fee_collector
field. If icrc1 canister has been deployed, how do I modify it?
change_fee_collector
is included as an upgrade arg so you can set it when you upgrade the canister.
You can learn more about upgrading a canister here.
However, this should work (with an optional subaccount; add the subaccount if needed):
dfx canister install <icrc1_canister_name_or_id> --mode upgrade --argument '(
variant {
Upgrade = record {
change_fee_collector = opt variant {
SetTo = record {
owner = principal "whatever_principal_you can_to_set_this_to";
subaccount = null;
}
};
}
}
)'