From d76b29e850db8346b2fd1dbe1099b00382140293 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Sat, 17 Feb 2024 10:39:50 -0300 Subject: [PATCH] Fix cli_docs_sandbox test --- yarn-project/end-to-end/src/cli_docs_sandbox.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/yarn-project/end-to-end/src/cli_docs_sandbox.test.ts b/yarn-project/end-to-end/src/cli_docs_sandbox.test.ts index 89285cd27767..a3cf6e66db35 100644 --- a/yarn-project/end-to-end/src/cli_docs_sandbox.test.ts +++ b/yarn-project/end-to-end/src/cli_docs_sandbox.test.ts @@ -262,13 +262,17 @@ Accounts found: // Test deploy docs = ` // docs:start:deploy -% aztec-cli deploy TokenContractArtifact --args $ADDRESS TokenName TKN 18 +% aztec-cli deploy TokenContractArtifact --private-key $PRIVATE_KEY --args $ADDRESS TokenName TKN 18 Contract deployed at 0x1ae8eea0dc265fb7f160dae62cc8912686d8a9ed78e821fbdd8bcedc54c06d0f // docs:end:deploy `; - command = docs.split('\n')[2].split('aztec-cli ')[1].replace('$ADDRESS', newAddress.toString()); + command = docs + .split('\n')[2] + .split('aztec-cli ')[1] + .replace('$ADDRESS', newAddress.toString()) + .replace('$PRIVATE_KEY', foundPrivateKey!); await run(command); let foundContractAddress = findInLogs(/Contract\sdeployed\sat\s(?
0x[a-fA-F0-9]+)/)?.groups?.address;