Ian Macalinao 4 жил өмнө
parent
commit
dfb9bd2091

+ 1 - 1
ts/src/program/namespace/account.ts

@@ -254,7 +254,7 @@ export class AccountClient<
    * Function returning the associated account. Args are keys to associate.
    * Function returning the associated account. Args are keys to associate.
    * Order matters.
    * Order matters.
    */
    */
-  async associated(...args: Array<PublicKey | Buffer>): Promise<any> {
+  async associated(...args: Array<PublicKey | Buffer>): Promise<T> {
     const addr = await this.associatedAddress(...args);
     const addr = await this.associatedAddress(...args);
     return await this.fetch(addr);
     return await this.fetch(addr);
   }
   }