Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Oct 22, 2023
1 parent 4452612 commit fef08ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
11 changes: 7 additions & 4 deletions evm-gateway/src/EVMGateway.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { HandlerDescription } from '@chainlink/ccip-read-server';
import type { Fragment, Interface, JsonFragment } from '@ethersproject/abi';
import {
concat,
dataSlice,
getBytes,
solidityPackedKeccak256,
toBigInt,
} from 'ethers';
import type { Fragment, Interface, JsonFragment } from '@ethersproject/abi';
import type { HandlerDescription } from '@ensdomains/ccip-read-cf-worker';

import type { IProofService, ProvableBlock } from './IProofService.js';

Expand All @@ -31,7 +31,10 @@ interface StorageElement {
}

interface Server {
add:(abi: string | readonly (string | Fragment | JsonFragment)[] | Interface, handlers: HandlerDescription[]) => void;
add: (
abi: string | readonly (string | Fragment | JsonFragment)[] | Interface,
handlers: HandlerDescription[]
) => void;
}

function memoize<T>(fn: () => Promise<T>): () => Promise<T> {
Expand Down Expand Up @@ -105,7 +108,7 @@ export class EVMGateway<T extends ProvableBlock> {
},
},
]);
return server
return server;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion l1-gateway/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const provider = new ethers.JsonRpcProvider(options.providerUrl);
const gateway = new EVMGateway(new L1ProofService(provider));
const server = new Server();
gateway.add(server);
const app = server.makeApp("/")
const app = server.makeApp('/');

const port = parseInt(options.port);
if (String(port) !== options.port) throw new Error('Invalid port');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
},
"dependencies": {
"@ensdomains/ccip-read-cf-worker": "^0.0.1",
"tsc": "^2.0.4",
"@eth-optimism/sdk": "^3.1.4"
}
}

0 comments on commit fef08ea

Please sign in to comment.