From fb0ef532f6b1d7a5bd80a3d030bc599b552d0604 Mon Sep 17 00:00:00 2001 From: Makoto Inoue <2630+makoto@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:57:16 +0100 Subject: [PATCH] Remove comments and console.log --- evm-gateway/src/EVMGateway.ts | 5 +---- l1-gateway-worker/src/server.ts | 6 ------ l1-gateway/src/server.ts | 3 --- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/evm-gateway/src/EVMGateway.ts b/evm-gateway/src/EVMGateway.ts index 084bdeae..0c7aeafc 100644 --- a/evm-gateway/src/EVMGateway.ts +++ b/evm-gateway/src/EVMGateway.ts @@ -1,5 +1,4 @@ -// import { Server } from '@chainlink/ccip-read-server'; -import { Server } from '@ensdomains/ccip-read-cf-worker'; +import { Server } from '@chainlink/ccip-read-server'; import { concat, @@ -89,10 +88,8 @@ export class EVMGateway { { type: 'getStorageSlots', func: async (args) => { - console.log('***getStorageSlots1', {args}) const [addr, commands, constants] = args; const proofs = await this.createProofs(addr, commands, constants); - console.log('***getStorageSlots2', {proofs}) return [proofs]; }, }, diff --git a/l1-gateway-worker/src/server.ts b/l1-gateway-worker/src/server.ts index b2699c94..704c2d4e 100644 --- a/l1-gateway-worker/src/server.ts +++ b/l1-gateway-worker/src/server.ts @@ -1,7 +1,3 @@ -// import { EVMGateway } from '@ensdomains/evm-gateway'; -// import { ethers } from 'ethers'; -// import { L1ProofService } from './L1ProofService.js'; -// import { EVMGateway } from '@ensdomains/l1-gateway'; import { Server } from '@ensdomains/ccip-read-cf-worker'; async function fetch(request:any, env:any, _context:any){ @@ -10,8 +6,6 @@ async function fetch(request:any, env:any, _context:any){ const ethers = await import('ethers'); const { EVMGateway } = await import('@ensdomains/evm-gateway'); const { L1ProofService } = await import('./L1ProofService'); - // import { Server } from '@ensdomains/ccip-read-cf-worker'; - // Set PROVIDER_URL under .dev.vars locally. Set the key as secret remotely with `wrangler secret put WORKER_PROVIDER_URL` const { PROVIDER_URL } = env; console.log({PROVIDER_URL}) diff --git a/l1-gateway/src/server.ts b/l1-gateway/src/server.ts index c8fa819e..9d539e3b 100644 --- a/l1-gateway/src/server.ts +++ b/l1-gateway/src/server.ts @@ -11,9 +11,6 @@ const program = new Command() program.parse(); const options = program.opts(); -console.log({ - options -}) const provider = new ethers.JsonRpcProvider(options.providerUrl); const gateway = new EVMGateway(new L1ProofService(provider)); const server = new Server();