Skip to content

Commit

Permalink
cast block to number. Rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
ltyu committed Oct 27, 2024
1 parent 4d2957c commit 122cf29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions typescript/ccip-server/src/services/RPCService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ type ProofResult = {

class RPCService {
provider: ethers.providers.JsonRpcProvider;
constructor(private readonly providerAddress: string) {
this.provider = new ethers.providers.JsonRpcProvider(this.providerAddress);
constructor(private readonly providerUrl: string) {
this.provider = new ethers.providers.JsonRpcProvider(this.providerUrl);
}

/**
Expand All @@ -32,12 +32,12 @@ class RPCService {
async getProofs(
address: string,
storageKeys: string[],
block: string,
block: number | string,
): Promise<ProofResult> {
const results = await this.provider.send('eth_getProof', [
address,
storageKeys,
block,
Number(block),
]);

return results;
Expand Down

0 comments on commit 122cf29

Please sign in to comment.