Merge pull request #108 from switchboard-xyz/mrEnclaves

map mrEnclaves through to functionSetConfig
This commit is contained in:
Jackson Jessup 2023-07-11 11:39:12 -04:00 committed by GitHub
commit 3169759a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -513,7 +513,11 @@ export class FunctionAccount extends Account<types.FunctionAccountData> {
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,