Skip to content

Commit

Permalink
Fix cli_docs_sandbox test
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Feb 26, 2024
1 parent 5538a51 commit d76b29e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions yarn-project/end-to-end/src/cli_docs_sandbox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(?<address>0x[a-fA-F0-9]+)/)?.groups?.address;
Expand Down

0 comments on commit d76b29e

Please sign in to comment.