From d9959613df581f8dc794c935713d648200e34de2 Mon Sep 17 00:00:00 2001 From: Jackson Jessup Date: Tue, 11 Jul 2023 11:38:08 -0400 Subject: [PATCH] map mrEnclaves through to functionSetConfig --- javascript/solana.js/src/accounts/functionAccount.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,