diff --git a/packages/config-manager/src/manager.ts b/packages/config-manager/src/manager.ts index 80ef87e06..e34e017de 100644 --- a/packages/config-manager/src/manager.ts +++ b/packages/config-manager/src/manager.ts @@ -42,9 +42,14 @@ export function validateConfig(config: Config): void { assertHash(`SCRIPTS.${scriptName}.CODE_HASH`, scriptConfig.CODE_HASH); const hashType = scriptConfig.HASH_TYPE; - if (hashType !== "type" && hashType !== "data" && hashType !== "data1") { + if ( + hashType !== "type" && + hashType !== "data" && + hashType !== "data1" && + hashType !== "data2" + ) { throw new Error( - `SCRIPTS.${scriptName}.HASH_TYPE must be type, data or data1!` + `SCRIPTS.${scriptName}.HASH_TYPE must one of type, data, data1, data2!` ); } assertHash(`SCRIPTS.${scriptName}.TX_HASH`, scriptConfig.TX_HASH);