getDialect function

Future<DialectAccount> getDialect(
  1. RpcClient client,
  2. ProgramAccount program,
  3. Ed25519HDPublicKey publicKey,
  4. EncryptionProps? encryptionProps,
)

Implementation

Future<DialectAccount> getDialect(sol.RpcClient client, ProgramAccount program,
    sol.Ed25519HDPublicKey publicKey, EncryptionProps? encryptionProps) async {
  final rawDialect =
      await fetchAccount(client, publicKey, RawDialect.fromBorsh);
  final dialect = parseRawDialect(rawDialect, encryptionProps: encryptionProps);
  return DialectAccount(dialect: dialect, publicKey: publicKey);
}