Ver Fonte

inroduce idl account getter (#2367)

Andrey Frolov há 2 anos atrás
pai
commit
79a066661c
1 ficheiros alterados com 6 adições e 0 exclusões
  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(