onflow/hybrid-custody

[BUG] CapabilityProxy.getAllPrivate() returns public Capabilities

sisyphusSmiling opened this issue · 0 comments

Current Behavior

CapabilityProxy.Proxy.getAllPrivate() currently returns public Capabilities

pub fun getAllPrivate(): [Capability] {
    return self.publicCapabilities.values
}

Should be

pub fun getAllPrivate(): [Capability] {
    return self.privateCapabilities.values
}

Expected Behavior

As method names suggests, should return contained private Capabilities from Proxy