Browse Source

inroduce idl account getter (#2367)

Andrey Frolov 2 years ago
parent
commit
79a066661c
1 changed files with 6 additions and 0 deletions
  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(