Skip to content

Commit c48b7f6

Browse files
committed
fix: as per review
1 parent b953258 commit c48b7f6

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

packages/integration-test/test/lit-protocol.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ describe('Lit Protocol Integration Tests', () => {
4646

4747
beforeAll(async () => {
4848
// Create wallet
49-
userWallet = new ethers.Wallet(
50-
'0x7b595b2bb732edddc4d4fe758ae528c7a748c40f0f6220f4494e214f15c5bfeb',
51-
);
49+
userWallet = ethers.Wallet.createRandom();
5250

5351
// Initialize signature provider
5452
epkSignatureProvider = new EthereumPrivateKeySignatureProvider({

packages/lit-protocol-cipher/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const litProvider = new LitProtocolProvider(
3636
// Initialize the client
3737
await litProvider.initializeClient();
3838

39+
// Enable decryption
40+
await litProvider.enableDecryption(true);
41+
3942
// Example usage with wallet connection
4043
async function example() {
4144
try {

packages/request-node/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { BigNumber } from 'ethers';
55
import { LogTypes } from '@requestnetwork/types';
66

77
import { LogMode } from './logger';
8+
import { LIT_NETWORK } from '@lit-protocol/constants';
89

910
const argv = yargs.option('help', { alias: 'h', type: 'boolean' }).parseSync();
1011

@@ -46,7 +47,7 @@ const defaultValues = {
4647
wallet: {
4748
mnemonic: 'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat',
4849
},
49-
litProtocolNetwork: 'datil',
50+
litProtocolNetwork: LIT_NETWORK.Datil,
5051
litProtocolRPC: 'https://yellowstone-rpc.litprotocol.com',
5152
litProtocolCapacityCreditsUsage: '1',
5253
litProtocolCapacityCreditsExpirationInSeconds: 10 * 60, // 10 minutes

packages/request-node/src/request/getLitCapacityDelegationAuthSig.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as config from '../config';
77
import { LitContracts } from '@lit-protocol/contracts-sdk';
88
import { utils } from 'ethers';
99
import { LIT_NETWORKS_KEYS } from '@lit-protocol/types';
10+
import { LIT_NETWORK } from '@lit-protocol/constants';
1011
/**
1112
* Handles getLitCapacityDelegationAuthSigHandler.
1213
*
@@ -31,7 +32,7 @@ export default class GetLitCapacityDelegationAuthSigHandler {
3132
new providers.JsonRpcProvider(config.getLitProtocolRPC()),
3233
);
3334
let tokenId = '0';
34-
if (config.getLitProtocolNetwork() === 'datil-dev') {
35+
if ((config.getLitProtocolNetwork() as LIT_NETWORKS_KEYS) === LIT_NETWORK.DatilDev) {
3536
tokenId = '0';
3637
} else {
3738
const litContractClient = new LitContracts({

0 commit comments

Comments
 (0)