Skip to content

Commit

Permalink
Remove comments and console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Oct 16, 2023
1 parent 0c88427 commit fb0ef53
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
5 changes: 1 addition & 4 deletions evm-gateway/src/EVMGateway.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -89,10 +88,8 @@ export class EVMGateway<T extends ProvableBlock> {
{
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];
},
},
Expand Down
6 changes: 0 additions & 6 deletions l1-gateway-worker/src/server.ts
Original file line number Diff line number Diff line change
@@ -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){
Expand All @@ -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})
Expand Down
3 changes: 0 additions & 3 deletions l1-gateway/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit fb0ef53

Please sign in to comment.