Skip to content
3 changes: 2 additions & 1 deletion client/test/e2e/onChainTransfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ describe('on-chain transfer', function () {
[didPDAKey] = await Promise.all([
didToPDA(did),
airdrop(connection, cryptidSigner, 5 * LAMPORTS_PER_SOL),
airdrop(connection, key.publicKey, 100_000),
]);

await airdrop(connection, key.publicKey, 1_000_000);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the amount was the issue you can move that back up in the code, correct?


console.log('key: ', key.publicKey.toBase58());
console.log('didPDA: ', didPDAKey.toBase58());
console.log('cryptidAccount: ', cryptidAccount.toBase58());
Expand Down
8 changes: 4 additions & 4 deletions client/test/e2e/transfer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import chaiAsPromised from 'chai-as-promised';
chai.use(chaiAsPromised);

// needs to be less than AIRDROP_LAMPORTS
const lamportsToTransfer = 20_000;
const lamportsToTransfer = 1_000_000; // minimum that can be transferred to a new account is 890_880 lamports to be rent-exempt

describe('transfers', function () {
this.timeout(20_000);
Expand Down Expand Up @@ -52,7 +52,7 @@ describe('transfers', function () {

await Promise.all([
airdrop(connection, cryptidAddress), // the main funds for the cryptid account
airdrop(connection, key.publicKey, 100_000), // to cover fees only
airdrop(connection, key.publicKey, 1_000_000), // to cover fees only
]);
});

Expand Down Expand Up @@ -129,7 +129,7 @@ describe('transfers', function () {
const alias = 'device2';

// airdrop to device2 key to cover fees for the transfer only
await airdrop(connection, device2Key.publicKey, 10_000);
await airdrop(connection, device2Key.publicKey, 1_000_000);

// add the new key and create a cryptid client for device 2
await cryptidForDevice1.addKey(device2Key.publicKey, alias);
Expand Down Expand Up @@ -225,7 +225,7 @@ describe('transfers', function () {
// airdrop funds to the controlled DID cryptid account
await airdrop(connection, controlledCryptidAddress, 5 * LAMPORTS_PER_SOL);
// airdrop funds to the controlled DID signer key (for fees)
await airdrop(connection, controlledDIDKey.publicKey, 10_000);
await airdrop(connection, controlledDIDKey.publicKey, 1_000_000);

// add the controller to the controlled DID (this anchors the controlled DID)
await controlledCryptid.addController(did);
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1581,11 +1581,6 @@
did-resolver "^3.0.1"
ramda "^0.27.1"

"@identity.com/wallet-adapter-cryptid@^0.7.0":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@identity.com/wallet-adapter-cryptid/-/wallet-adapter-cryptid-0.7.1.tgz#da3b0c46041f0af9b0ff9c151593e412c3a2b77c"
integrity sha512-PGT2XHP71pPfJjQl8nmWPl1u1lfY8qVzzZ/uFKCZUcF5IoQJaJ6DDTZOg0aGLt9koK68RhjoX9peVVpFdp4mVw==

"@isaacs/string-locale-compare@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz#291c227e93fd407a96ecd59879a35809120e432b"
Expand Down