Преглед на файлове

fix: typos in documentation files (#3543)

* Update realloc.ts

* Update amm_v3.json

* Update amm_v3.json
Maxim Evtush преди 5 месеца
родител
ревизия
6d72be7168
променени са 2 файла, в които са добавени 9 реда и са изтрити 9 реда
  1. 8 8
      tests/declare-program/idls/amm_v3.json
  2. 1 1
      tests/realloc/tests/realloc.ts

+ 8 - 8
tests/declare-program/idls/amm_v3.json

@@ -2679,7 +2679,7 @@
           {
             "name": "negativeTickArrayBitmap",
             "docs": [
-              "Packed initialized tick array state for start_tick_index is negitive"
+              "Packed initialized tick array state for start_tick_index is negative"
             ],
             "type": {
               "array": [
@@ -3430,12 +3430,12 @@
     },
     {
       "code": 6006,
-      "name": "InvaildTickIndex",
+      "name": "InvalidTickIndex",
       "msg": "Tick out of range"
     },
     {
       "code": 6007,
-      "name": "TickInvaildOrder",
+      "name": "TickInvalidOrder",
       "msg": "The lower tick must be below the upper tick"
     },
     {
@@ -3456,12 +3456,12 @@
     {
       "code": 6011,
       "name": "InvalidTickArray",
-      "msg": "Invaild tick array account"
+      "msg": "Invalid tick array account"
     },
     {
       "code": 6012,
       "name": "InvalidTickArrayBoundary",
-      "msg": "Invaild tick array boundary"
+      "msg": "Invalid tick array boundary"
     },
     {
       "code": 6013,
@@ -3485,8 +3485,8 @@
     },
     {
       "code": 6017,
-      "name": "InvaildLiquidity",
-      "msg": "Invaild liquidity when update position"
+      "name": "InvalidLiquidity",
+      "msg": "Invalid liquidity when update position"
     },
     {
       "code": 6018,
@@ -3541,7 +3541,7 @@
     {
       "code": 6028,
       "name": "InvalidFirstTickArrayAccount",
-      "msg": "Invaild first tick array account"
+      "msg": "Invalid first tick array account"
     },
     {
       "code": 6029,

+ 1 - 1
tests/realloc/tests/realloc.ts

@@ -58,7 +58,7 @@ describe("realloc", () => {
     assert.lengthOf(s.data, 5);
   });
 
-  it("realloc substractive", async () => {
+  it("realloc subtractive", async () => {
     await program.methods
       .realloc(1)
       .accounts({ authority: authority.publicKey, sample })