Skip to content

Commit

Permalink
remove account creation
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimKrukovich committed Apr 2, 2024
1 parent 9034d56 commit 1453d1c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions test/vault.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ describe("Vault", function () {
operatorPrKey
);

aliceKey = PrivateKey.generateED25519();
aliceAccountId = await createAccount(client, aliceKey, 20);
const alice = createAccount(client, aliceKey, aliceAccountId);
// aliceKey = PrivateKey.generateED25519();
// aliceAccountId = await createAccount(client, aliceKey, 20);
// const alice = createAccount(client, aliceKey, aliceAccountId);

console.log("account creation success");
// console.log("account creation success");

const stakingToken = await createFungibleToken(
"ERC4626 on Hedera",
Expand All @@ -52,13 +52,13 @@ describe("Vault", function () {
);
await hederaVault.waitForDeployment();

client.setOperator(aliceAccountId!, aliceKey);
const tokenAssociate = await new TokenAssociateTransaction()
.setAccountId(aliceAccountId!)
.setTokenIds([stakingToken!])
.execute(client);
// client.setOperator(aliceAccountId!, aliceKey);
// const tokenAssociate = await new TokenAssociateTransaction()
// .setAccountId(aliceAccountId!)
// .setTokenIds([stakingToken!])
// .execute(client);

console.log("association success");
// console.log("association success");

// await mintToken(stakingToken, client, 100, operatorPrKey);

Expand All @@ -76,13 +76,13 @@ describe("Vault", function () {

// console.log("balance check", await stToken.(owner.address));

client.setOperator(
operatorAccountId,
operatorPrKey
);
await TokenTransfer(stakingToken, operatorAccountId, aliceAccountId, 50, client);
// client.setOperator(
// operatorAccountId,
// operatorPrKey
// );
// await TokenTransfer(stakingToken, operatorAccountId, aliceAccountId, 50, client);

console.log("token transfer success");
// console.log("token transfer success");

// console.log(
// await TokenBalance(receiver.address, client)
Expand All @@ -92,7 +92,7 @@ describe("Vault", function () {
hederaVault,
stakingToken,
// stToken,
alice,
// alice,
to,
client,
owner,
Expand Down

0 comments on commit 1453d1c

Please sign in to comment.