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

inroduce idl account getter (#2367)

Andrey Frolov преди 2 години
родител
ревизия
79a066661c
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      ts/packages/anchor/src/program/namespace/account.ts

+ 6 - 0
ts/packages/anchor/src/program/namespace/account.ts

@@ -110,6 +110,12 @@ export class AccountClient<
   }
   private _coder: Coder;
 
+  /**
+   * Returns the idl account.
+   */
+  get idlAccount(): A {
+    return this._idlAccount;
+  }
   private _idlAccount: A;
 
   constructor(