We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acb35ff commit e52370cCopy full SHA for e52370c
src/registries/token_registry.ts
@@ -54,9 +54,9 @@ export class TokenRegistry extends Registry {
54
};
55
}
56
57
-export const getTokens = async ({
58
- agent = DEFAULT_AGENT,
59
-}): Promise<Token[]> => {
+export const getTokens = async ({ agent = DEFAULT_AGENT } = {}): Promise<
+ Token[]
+> => {
60
const tokenRegistry = new TokenRegistry(agent);
61
const tokenCanisters = await tokenRegistry.getAll();
62
return tokenCanisters.map((token) => ({
0 commit comments