Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('GetAccountAssetInfoHandler', () => {
},
})) as GetAccountAssetInfoJsonRpcResponse;

expect(result[USDC_CLASSIC]).toStrictEqual({});
expect(result[USDC_CLASSIC]).toStrictEqual({ limit: '0' });
});

it('tolerates unactivated accounts with null on-chain state', async () => {
Expand All @@ -188,7 +188,7 @@ describe('GetAccountAssetInfoHandler', () => {
},
})) as GetAccountAssetInfoJsonRpcResponse;

expect(result[USDC_CLASSIC]).toStrictEqual({});
expect(result[USDC_CLASSIC]).toStrictEqual({ limit: '0' });
});

it('omits non-classic assets from the response', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class GetAccountAssetInfoHandler extends BaseClientRequestHandler<
if (!isClassicAssetId(assetId)) {
continue;
}
result[assetId] = {};
result[assetId] = { limit: '0' };
}

return result;
Expand Down Expand Up @@ -132,7 +132,7 @@ export class GetAccountAssetInfoHandler extends BaseClientRequestHandler<
'Returning empty trust-line entry; portfolio may treat asset as untrusted',
},
);
result[assetId] = {};
result[assetId] = { limit: '0' };
continue;
}

Expand Down
Loading