Merge pull request #108 from switchboard-xyz/mrEnclaves
map mrEnclaves through to functionSetConfig
This commit is contained in:
commit
3169759a49
|
@ -513,7 +513,11 @@ export class FunctionAccount extends Account<types.FunctionAccountData> {
|
||||||
containerRegistry: toOptionalBytes(params.containerRegistry),
|
containerRegistry: toOptionalBytes(params.containerRegistry),
|
||||||
version: toOptionalBytes(params.version),
|
version: toOptionalBytes(params.version),
|
||||||
schedule: toOptionalBytes(params.schedule),
|
schedule: toOptionalBytes(params.schedule),
|
||||||
mrEnclaves: [],
|
mrEnclaves: params.mrEnclaves
|
||||||
|
? params.mrEnclaves.map((mrEnclave) =>
|
||||||
|
Array.from(parseRawBuffer(mrEnclave))
|
||||||
|
)
|
||||||
|
: null,
|
||||||
requestsDisabled: params.requestsDisabled ?? null,
|
requestsDisabled: params.requestsDisabled ?? null,
|
||||||
requestsRequireAuthorization:
|
requestsRequireAuthorization:
|
||||||
params.requestsRequireAuthorization ?? null,
|
params.requestsRequireAuthorization ?? null,
|
||||||
|
|
Loading…
Reference in New Issue