Skip to content

Commit

Permalink
feat: added solana wallet test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth9890 committed Jul 4, 2024
1 parent 244cf9c commit 8083974
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions test/organization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,32 @@ import { WalletService } from '../src/services/wallet-service';
import {
OrganizationIdentifierType,
OrganizationRole,
SignCipherEnum,
UserIdentifierType,
} from '../src/common/enums';
import { Keypair } from '@solana/web3.js';

let sdk: Sdk;
let organization: Organization;
let wallet: ethers.Wallet;
let secretKey: string;

beforeAll(() => {
sdk = getSdk(new GraphQLClient(''));
wallet = ethers.Wallet.createRandom();
secretKey = ethers.utils.base58.encode(Keypair.generate().secretKey);
organization = new Organization(
sdk,
new ValidationService(),
{
apiKey: '',
token: '',
url: '',
walletPrivateKey: wallet.privateKey,
walletPrivateKey: secretKey,
walletType: SignCipherEnum.ED25519,
},
new WalletService({ walletPrivateKey: wallet.privateKey }),
new WalletService({
walletPrivateKey: secretKey,
walletType: SignCipherEnum.ED25519,
}),
);
});

Expand Down

0 comments on commit 8083974

Please sign in to comment.