diff --git a/javascript/solana.js/src/accounts/functionAccount.ts b/javascript/solana.js/src/accounts/functionAccount.ts index 8774636..6a8bdf9 100644 --- a/javascript/solana.js/src/accounts/functionAccount.ts +++ b/javascript/solana.js/src/accounts/functionAccount.ts @@ -513,7 +513,11 @@ export class FunctionAccount extends Account { containerRegistry: toOptionalBytes(params.containerRegistry), version: toOptionalBytes(params.version), schedule: toOptionalBytes(params.schedule), - mrEnclaves: [], + mrEnclaves: params.mrEnclaves + ? params.mrEnclaves.map((mrEnclave) => + Array.from(parseRawBuffer(mrEnclave)) + ) + : null, requestsDisabled: params.requestsDisabled ?? null, requestsRequireAuthorization: params.requestsRequireAuthorization ?? null,