Skip to content
Closed
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
1 change: 1 addition & 0 deletions local-tests/setup/tinny-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ export class TinnyEnvironment {
debug: this.processEnvs.DEBUG,
rpc: this.rpc,
customContext: networkContext,
network: 'custom',
});
} else if (
CENTRALISATION_BY_NETWORK[this.network] === 'decentralised' ||
Expand Down
2 changes: 1 addition & 1 deletion local-tests/setup/tinny-person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class TinnyPerson {
debug: this.envConfig.processEnvs.DEBUG,
rpc: this.envConfig.processEnvs.LIT_RPC_URL, // anvil rpc
customContext: networkContext as unknown as LitContractContext,
network: 'custom',
});
} else {
this.contractsClient = new LitContracts({
Expand All @@ -136,7 +137,6 @@ export class TinnyPerson {
network: this.envConfig.network,
});
}

await this.contractsClient.connect();

/**
Expand Down
9 changes: 5 additions & 4 deletions packages/constants/src/lib/constants/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export enum LIT_ENDPOINT_VERSION {
V0 = '/',
V1 = '/v1',
V2 = '/v2',
}

export const LIT_ENDPOINT = {
Expand All @@ -10,15 +11,15 @@ export const LIT_ENDPOINT = {
},
SIGN_SESSION_KEY: {
path: '/web/sign_session_key',
version: LIT_ENDPOINT_VERSION.V1,
version: LIT_ENDPOINT_VERSION.V2,
},
EXECUTE_JS: {
path: '/web/execute',
version: LIT_ENDPOINT_VERSION.V1,
version: LIT_ENDPOINT_VERSION.V2,
},
PKP_SIGN: {
path: '/web/pkp/sign',
version: LIT_ENDPOINT_VERSION.V1,
version: LIT_ENDPOINT_VERSION.V2,
},
PKP_CLAIM: {
path: '/web/pkp/claim',
Expand All @@ -30,6 +31,6 @@ export const LIT_ENDPOINT = {
},
ENCRYPTION_SIGN: {
path: '/web/encryption/sign',
version: LIT_ENDPOINT_VERSION.V0,
version: LIT_ENDPOINT_VERSION.V2,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -2120,6 +2120,9 @@ const resourceAbilityRequests = [
capabilities,
issuedAt: new Date().toISOString(),
expiration: sessionExpiration,

// FIX ME: This is a dummy value for now
maxPrice: '0x1234567890abcdef1234567890abcdef12345678',
};

const signatures: SessionSigsMap = {};
Expand Down