Skip to content

Commit ff46ed4

Browse files
Abdul Qadir ShaikhAbdul Qadir Shaikh
authored andcommitted
minor changes
1 parent 0af02e8 commit ff46ed4

5 files changed

Lines changed: 18 additions & 20 deletions

File tree

light-sdk-ts/src/wallet/provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class Provider {
153153

154154
const merkletreeIsInited = await this.provider!.connection.getAccountInfo(
155155
merkleTreePubkey,
156-
"confirmed"
156+
"confirmed",
157157
);
158158
if (!merkletreeIsInited) {
159159
throw new ProviderError(

light-sdk-ts/src/wallet/user.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,7 @@ export class User {
338338
merkleTreePubkey: MERKLE_TREE_KEY,
339339
sender: action === Action.SHIELD ? userSplAccount : undefined,
340340
senderFee:
341-
action === Action.SHIELD
342-
? this.provider.wallet!.publicKey
343-
: undefined,
341+
action === Action.SHIELD ? this.provider.wallet!.publicKey : undefined,
344342
recipient: recipientSPLAddress,
345343
recipientFee,
346344
verifier: new VerifierZero(), // TODO: add support for 10in here -> verifier1

light-system-programs/tests/user_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ describe("Test User Errors", () => {
502502
amount = 20;
503503
token = "USDC";
504504

505-
provider = await Provider.native(userKeypair); // userKeypair
505+
provider = await Provider.initialize(userKeypair); // userKeypair
506506
let res = await provider.provider.connection.requestAirdrop(
507507
userKeypair.publicKey,
508508
2_000_000_000,

light-system-programs/tests/verifier_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ describe("Verifier Zero and One Tests", () => {
171171
// Withdrawal
172172
var tokenRecipient = recipientTokenAccount;
173173

174-
let lightProviderWithdrawal = await LightProvider.native(
174+
let lightProviderWithdrawal = await LightProvider.initialize(
175175
ADMIN_AUTH_KEYPAIR
176176
);
177177
const relayerRecipient = SolanaKeypair.generate().publicKey;

test.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22

33
set -e
44

5-
./build-sdk.sh
5+
# ./build-sdk.sh
66

77
pushd light-system-programs
8-
anchor build
8+
# anchor build
99
yarn test
1010
yarn run test-merkle-tree
1111
yarn run test-verifiers
1212
yarn run test-user
1313
yarn run test-provider
1414
popd
1515

16-
pushd light-sdk-ts
17-
yarn test
18-
sleep 1
19-
popd
16+
# pushd light-sdk-ts
17+
# yarn test
18+
# sleep 1
19+
# popd
2020

21-
pushd mock-app-verifier
22-
anchor build
23-
yarn test
24-
yarn run test-verifiers
25-
popd
21+
# pushd mock-app-verifier
22+
# anchor build
23+
# yarn test
24+
# yarn run test-verifiers
25+
# popd
2626

27-
pushd light-circuits
28-
yarn run test
29-
popd
27+
# pushd light-circuits
28+
# yarn run test
29+
# popd
3030

3131
# && cd programs/merkle_tree_program && cargo test

0 commit comments

Comments
 (0)