jpcaulfi 3 years ago
parent
commit
868520c683
2 changed files with 6 additions and 0 deletions
  1. 3 0
      accounts/rent/anchor/tests/test.ts
  2. 3 0
      accounts/rent/native/tests/test.ts

+ 3 - 0
accounts/rent/anchor/tests/test.ts

@@ -18,6 +18,9 @@ describe("Create a system account", () => {
       address: "123 Main St. San Francisco, CA"
     };
 
+    // We're just going to serialize our object here so we can check
+    //  the size on the client side against the program logs
+    //
     const addressDataBuffer = new anchor.BorshCoder(IDL).types.encode("AddressData", addressData);
     console.log(`Address data buffer length: ${addressDataBuffer.length}`);
     

+ 3 - 0
accounts/rent/native/tests/test.ts

@@ -58,6 +58,9 @@ describe("Create a system account", async () => {
             address: "123 Main St. San Francisco, CA"
         });
 
+        // We're just going to serialize our object here so we can check
+        //  the size on the client side against the program logs
+        //
         const addressDataBuffer = addressData.toBuffer();
         console.log(`Address data buffer length: ${addressDataBuffer.length}`)