@toruslabs/ethereum-controllers 4.9.1 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2954,7 +2954,7 @@ function createProviderConfigMiddleware(providerConfig) {
2954
2954
  return next();
2955
2955
  };
2956
2956
  }
2957
- function createJsonRpcClient(providerConfig) {
2957
+ function createJsonRpcClient(providerConfig, networkConfig) {
2958
2958
  const {
2959
2959
  chainId,
2960
2960
  rpcTarget
@@ -2964,9 +2964,9 @@ function createJsonRpcClient(providerConfig) {
2964
2964
  });
2965
2965
  const blockProvider = providerFromMiddleware(fetchMiddleware);
2966
2966
  const blockTracker = new PollingBlockTracker({
2967
- config: {
2967
+ config: _objectSpread(_objectSpread({}, networkConfig), {}, {
2968
2968
  provider: blockProvider
2969
- },
2969
+ }),
2970
2970
  state: {}
2971
2971
  });
2972
2972
  const networkMiddleware = mergeMiddleware([createChainIdMiddleware(chainId), createProviderConfigMiddleware(providerConfig),
@@ -3158,7 +3158,7 @@ class NetworkController extends BaseController {
3158
3158
  this.blockTracker = blockTracker;
3159
3159
  }
3160
3160
  configureStandardProvider(providerConfig) {
3161
- const networkClient = createJsonRpcClient(providerConfig);
3161
+ const networkClient = createJsonRpcClient(providerConfig, this.config);
3162
3162
  log.info("networkClient", networkClient);
3163
3163
  this.setNetworkClient(networkClient);
3164
3164
  }
@@ -5079,7 +5079,6 @@ function getFinalStates() {
5079
5079
  TransactionStatus.dropped // the tx nonce was already used
5080
5080
  ];
5081
5081
  }
5082
-
5083
5082
  function parseStandardTokenTransactionData(data) {
5084
5083
  try {
5085
5084
  const txDesc = erc20Interface.parseTransaction({
@@ -5519,7 +5518,6 @@ class TransactionController extends TransactionStateManager {
5519
5518
  getConfirmedTransactions: this.getConfirmedTransactions.bind(this),
5520
5519
  getPendingTransactions: this.getSubmittedTransactions.bind(this) // nonce tracker should only care about submitted transactions
5521
5520
  });
5522
-
5523
5521
  this.pendingTxTracker = new PendingTransactionTracker({
5524
5522
  provider,
5525
5523
  nonceTracker: this.nonceTracker,