diff --git a/local-tests/setup/tinny-environment.ts b/local-tests/setup/tinny-environment.ts index 3500047cdb..e4275936d4 100644 --- a/local-tests/setup/tinny-environment.ts +++ b/local-tests/setup/tinny-environment.ts @@ -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' || diff --git a/local-tests/setup/tinny-person.ts b/local-tests/setup/tinny-person.ts index 429e0b42c0..738bfc49a8 100644 --- a/local-tests/setup/tinny-person.ts +++ b/local-tests/setup/tinny-person.ts @@ -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({ @@ -136,7 +137,6 @@ export class TinnyPerson { network: this.envConfig.network, }); } - await this.contractsClient.connect(); /** diff --git a/packages/constants/src/lib/constants/endpoints.ts b/packages/constants/src/lib/constants/endpoints.ts index 3672dce5df..be2e5145ce 100644 --- a/packages/constants/src/lib/constants/endpoints.ts +++ b/packages/constants/src/lib/constants/endpoints.ts @@ -1,6 +1,7 @@ export enum LIT_ENDPOINT_VERSION { V0 = '/', V1 = '/v1', + V2 = '/v2', } export const LIT_ENDPOINT = { @@ -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', @@ -30,6 +31,6 @@ export const LIT_ENDPOINT = { }, ENCRYPTION_SIGN: { path: '/web/encryption/sign', - version: LIT_ENDPOINT_VERSION.V0, + version: LIT_ENDPOINT_VERSION.V2, }, }; diff --git a/packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts b/packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts index f330227baf..202feb2cb3 100644 --- a/packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts +++ b/packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts @@ -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 = {};