Skip to content

Commit dd2b385

Browse files
committed
Revert "update fees to work with different L1s"
This reverts commit 6841363.
1 parent 6841363 commit dd2b385

3 files changed

Lines changed: 3 additions & 22 deletions

File tree

.env-example

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ log/
55
.vscode
66
.DS_Store
77
codegenCache.json
8-
.env

scripts/fees.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createLogger, FeeJuicePaymentMethodWithClaim, Fr, L1FeeJuicePortalManager, PXE, waitForPXE , createPXEClient, Logger, FeeJuicePaymentMethod, PrivateFeePaymentMethod, PublicFeePaymentMethod } from "@aztec/aztec.js";
22
import {
3-
Chain,
43
createPublicClient,
54
createWalletClient,
65
http,
@@ -19,8 +18,6 @@ import { SponsoredFPCContract } from "@aztec/noir-contracts.js/SponsoredFPC";
1918
import { deploySchnorrAccount } from "./deploy-account.js";
2019
import { getSponsoredFPCInstance } from "../src/utils/sponsored_fpc.js";
2120
import { getCanonicalFeeJuice } from '@aztec/protocol-contracts/fee-juice';
22-
import * as dotenv from 'dotenv';
23-
dotenv.config();
2421

2522
const setupSandbox = async () => {
2623
const { PXE_URL = 'http://localhost:8081' } = process.env;
@@ -32,11 +29,11 @@ const setupSandbox = async () => {
3229
const MNEMONIC = 'test test test test test test test test test test test junk';
3330
const FEE_FUNDING_FOR_TESTER_ACCOUNT = 1000000000000000000n;
3431

35-
let walletClient = getL1WalletClient(process.env.L1_URL!, 0);
32+
let walletClient = getL1WalletClient(foundry.rpcUrls.default.http[0], 0);
3633

3734
const publicClient = createPublicClient({
3835
chain: foundry,
39-
transport: http(process.env.L1_URL),
36+
transport: http("http://127.0.0.1:8545"),
4037
});
4138

4239
async function main() {
@@ -143,19 +140,9 @@ main();
143140
// from here: https://github.com/AztecProtocol/aztec-packages/blob/ecbd59e58006533c8885a8b2fadbd9507489300c/yarn-project/end-to-end/src/fixtures/utils.ts#L534
144141
function getL1WalletClient(rpcUrl: string, index: number) {
145142
const hdAccount = mnemonicToAccount(MNEMONIC, { addressIndex: index });
146-
const chain: Chain = {
147-
id: Number(process.env.L1_CHAIN_ID!),
148-
name: "test",
149-
nativeCurrency: {
150-
name: "ETH",
151-
symbol: "ETH",
152-
decimals: 18
153-
},
154-
rpcUrls: {default: {http: [process.env.L1_URL!]}}
155-
}
156143
return createWalletClient({
157144
account: hdAccount,
158-
chain,
145+
chain: foundry,
159146
transport: http(rpcUrl),
160147
});
161148
}

0 commit comments

Comments
 (0)