Bypass `NonceManager` in `getMultiProviderFromGCP` (#888)

* Bypass nonce manager in getMultiProviderFromGCP

* nit

Co-authored-by: Trevor Porter <trkporter@ucdavis.edu>
pull/890/head
Yorke Rhodes 2 years ago committed by GitHub
parent f573069f34
commit 936afa74b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      typescript/infra/src/config/chain.ts

@ -1,5 +1,4 @@
import { Provider } from '@ethersproject/abstract-provider'; import { Provider } from '@ethersproject/abstract-provider';
import { NonceManager } from '@ethersproject/experimental';
import { ethers } from 'ethers'; import { ethers } from 'ethers';
import { StaticCeloJsonRpcProvider } from '@abacus-network/celo-ethers-provider'; import { StaticCeloJsonRpcProvider } from '@abacus-network/celo-ethers-provider';
@ -32,6 +31,5 @@ export async function fetchSigner(
provider: Provider, provider: Provider,
) { ) {
const key = await getSecretDeployerKey(environment, context, chainName); const key = await getSecretDeployerKey(environment, context, chainName);
const wallet = new ethers.Wallet(key, provider); return new ethers.Wallet(key, provider);
return new NonceManager(wallet);
} }

Loading…
Cancel
Save