Skip to content

Commit b2ccdb0

Browse files
committed
Add TODOs for removing private keys from P2SH debugging as well
1 parent 7d1c472 commit b2ccdb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cashscript/src/LibauthTemplate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ export const generateTemplateScenarios = (
294294
},
295295
currentBlockHeight: 2,
296296
currentBlockTime: Math.round(+new Date() / 1000),
297+
// TODO: remove usage of private keys in P2SH scenarios as well
297298
keys: {
298299
privateKeys: generateTemplateScenarioKeys(abiFunction.inputs, encodedFunctionArgs),
299300
},
@@ -652,6 +653,7 @@ export const generateUnlockingScriptParams = (
652653
...generateTemplateScenarioParametersValues(abiFunction.inputs, encodedFunctionArgs),
653654
...generateTemplateScenarioParametersValues(contract.artifact.constructorInputs, contract.encodedConstructorArgs),
654655
},
656+
// TODO: remove usage of private keys in P2SH scenarios as well
655657
keys: {
656658
privateKeys: generateTemplateScenarioKeys(abiFunction.inputs, encodedFunctionArgs),
657659
},

0 commit comments

Comments
 (0)