From 4ffe9befc06e9b322fe28a34ba4818c66459c6cd Mon Sep 17 00:00:00 2001 From: josh crites Date: Thu, 19 Oct 2023 09:53:31 -0400 Subject: [PATCH] docs: fix: update cheat codes to connect to ethRpcUrl (#2922) When setting up cheat codes, you should connect to ethRpcUrl instead of the pxe url. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [x] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [x] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist). --- docs/docs/dev_docs/testing/cheat_codes.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/dev_docs/testing/cheat_codes.md b/docs/docs/dev_docs/testing/cheat_codes.md index beab249668b..134b59c1bd5 100644 --- a/docs/docs/dev_docs/testing/cheat_codes.md +++ b/docs/docs/dev_docs/testing/cheat_codes.md @@ -25,13 +25,14 @@ For this guide, the following Aztec packages are used: - @aztec/aztec.js -### Initialisation +### Initialization ```ts import { createPXEClient, CheatCodes } from "@aztec/aztec.js"; const pxeRpcUrl = "http://localhost:8080"; +const ethRpcUrl = "http://localhost:8545"; const pxe = createPXEClient(pxeRpcUrl); -const cc = await CheatCodes.create(pxeRpcUrl, pxe); +const cc = await CheatCodes.create(ethRpcUrl, pxe); ``` There are two properties of the CheatCodes class - `eth` and `aztec` for cheatcodes relating to the Ethereum blockchain (L1) and the Aztec network (L2) respectively.