Skip to content

Commit

Permalink
feat(ethers): assume provider's backend will never change chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Jul 31, 2023
1 parent fa97ee5 commit cfb7e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/ethers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ console.log(
)
console.log()

const destinationProvider = new ethers.providers.JsonRpcProvider(
const destinationProvider = new ethers.providers.StaticJsonRpcProvider(
providerUrl,
network
)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ethers/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WalletMiddlewareServer {
wrapper: WalletWrapper

constructor (
provider: ethers.providers.StaticJsonRpcProvider,
provider: ethers.providers.JsonRpcProvider,
seed_phrase: string,
interleave_blocks: number,
gas_price: number,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ethers/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WalletWrapper {
gasLimitFactor!: number
interleaveBlocks: number
lastKnownBlock: number
provider: ethers.providers.StaticJsonRpcProvider
provider: ethers.providers.JsonRpcProvider
wallets: Wallet[]

constructor (
Expand Down

0 comments on commit cfb7e87

Please sign in to comment.