Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenbf committed Oct 3, 2023
1 parent efc675c commit db46bcd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions examples/composed-examples/listNumberAccountTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import {
isTransferLikeSummary,
unwrap,
} from '@concordium/web-sdk';
import { ConcordiumGRPCNodeClient } from '@concordium/web-sdk/nodejs';
import meow from 'meow';

import { credentials } from '@grpc/grpc-js';
import { parseEndpoint } from '../shared/util.js';

import meow from 'meow';

const cli = meow(
`
Usage
Expand Down
5 changes: 5 additions & 0 deletions examples/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// `fetch` is actually available in nodeJS, type is not available though.
declare function fetch(
input: RequestInfo | URL,
init?: RequestInit
): Promise<Response>;
4 changes: 2 additions & 2 deletions packages/ccd-js-gen/src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function addModuleClient(
});
moduleSourceFile.addImportDeclaration({
namespaceImport: 'SDK',
moduleSpecifier: '@concordium/common-sdk',
moduleSpecifier: '@concordium/web-sdk',
});
const moduleRefId = 'moduleReference';

Expand Down Expand Up @@ -359,7 +359,7 @@ This function ensures the smart contract module is deployed on chain.

contractSourceFile.addImportDeclaration({
namespaceImport: 'SDK',
moduleSpecifier: '@concordium/common-sdk',
moduleSpecifier: '@concordium/web-sdk',
});

contractSourceFile.addVariableStatement({
Expand Down

0 comments on commit db46bcd

Please sign in to comment.