Skip to content

Commit

Permalink
feat: whoAmI
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedziwiatr committed Apr 28, 2023
1 parent 3df39d1 commit 673b12f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/Warp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class Warp {

readonly testing: Testing;
kvStorageFactory: KVStorageFactory;
whoAmI: string;

private readonly plugins: Map<WarpPluginType, WarpPlugin<unknown, unknown>> = new Map();

Expand Down
1 change: 1 addition & 0 deletions src/core/modules/impl/WarpGatewayInteractionsLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export class WarpGatewayInteractionsLoader implements InteractionsLoader {
fetch(
`${url}?${new URLSearchParams({
contractId: contractId,
...(this._warp.whoAmI ? { client: this._warp.whoAmI } : ''),
...(fromSortKey ? { from: fromSortKey } : ''),
...(toSortKey ? { to: toSortKey } : ''),
page: (++page).toString(),
Expand Down
3 changes: 1 addition & 2 deletions src/core/modules/impl/normalize-source.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { isBrowser } from '../../../utils/utils';
import { ILoggerFactory } from "../../../logging/LoggerFactory";
import { WarpLogger } from "../../../logging/WarpLogger";
import { WarpLogger } from '../../../logging/WarpLogger';

export function normalizeContractSource(contractSrc: string, useVM2: boolean): string {
// Convert from ES Module format to something we can run inside a Function.
Expand Down

0 comments on commit 673b12f

Please sign in to comment.