From b72987e82b1a8cd53f1aca72f00ef60d1d46e454 Mon Sep 17 00:00:00 2001 From: josh crites Date: Wed, 18 Oct 2023 16:07:04 -0400 Subject: [PATCH] docs: fix: update cheat codes to connect to ethRpcUrl --- 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.