Browse Source

Log the public key of created account via direct call to system program

Dadepo Aderemi 2 years ago
parent
commit
e1623de4e8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      basics/create-account/native/tests/test.ts

+ 2 - 0
basics/create-account/native/tests/test.ts

@@ -61,6 +61,8 @@ describe("Create a system account", async () => {
         await sendAndConfirmTransaction(connection,
             new Transaction().add(ix),
             [payer, newKeypair]);
+
+        console.log(`Account with public key ${newKeypair.publicKey} successfully created`);
     });
   });