diff --git a/packages/nns/src/governance.canister.ts b/packages/nns/src/governance.canister.ts index 00350c09..05cc5dcf 100644 --- a/packages/nns/src/governance.canister.ts +++ b/packages/nns/src/governance.canister.ts @@ -976,16 +976,20 @@ export class GovernanceCanister { public getNeuron = async ({ certified = true, neuronId, + includeEmptyNeurons, }: { certified: boolean; neuronId: NeuronId; + includeEmptyNeurons: boolean; }): Promise => { // The governance canister exposes two functions "get_neuron_info" and "get_full_neuron" that could probably be used to fetch the neuron details too. // However historically this function has been resolved with a single call "list_neurons". + //Visibility is not provided by old oldListNeuronsCertifiedService, and we pass include empty neurons to get correct visibility const [neuron]: NeuronInfo[] = await this.listNeurons({ certified, neuronIds: [neuronId], + includeEmptyNeurons, }); return neuron;