getDialect function
Future<DialectAccount>
getDialect(
- RpcClient client,
- ProgramAccount program,
- Ed25519HDPublicKey publicKey,
- 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);
}