fixed wallet listing ignoring org reference

This commit is contained in:
Stephan D
2026-01-14 17:25:21 +01:00
parent 62bc2644d4
commit 343911ebe7
33 changed files with 408 additions and 304 deletions

View File

@@ -149,16 +149,20 @@ func (c *chainGatewayClient) ListManagedWallets(ctx context.Context, req *chainv
defer cancel()
assetString := ""
ownerRef := ""
orgRef := ""
var page *paginationv1.CursorPageRequest
if req != nil {
assetString = assetStringFromChainAsset(req.GetAsset())
ownerRef = strings.TrimSpace(req.GetOwnerRef())
orgRef = strings.TrimSpace(req.GetOrganizationRef())
page = req.GetPage()
}
resp, err := c.client.ListAccounts(ctx, &connectorv1.ListAccountsRequest{
OwnerRef: ownerRef,
Asset: assetString,
Page: page,
OwnerRef: ownerRef,
OrganizationRef: orgRef,
Kind: connectorv1.AccountKind_CHAIN_MANAGED_WALLET,
Asset: assetString,
Page: page,
})
if err != nil {
return nil, err