@toruslabs/ethereum-controllers 5.2.7 → 5.2.8

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.
@@ -4240,7 +4240,7 @@ class PreferencesController extends base_controllers_namespaceObject.BasePrefere
4240
4240
  async fetchEtherscanTx(parameters) {
4241
4241
  try {
4242
4242
  const url = new URL(`${this.config.api}/etherscan`);
4243
- Object.keys(parameters).forEach(key => url.searchParams.append(key, parameters[key]));
4243
+ url.searchParams.append("chainId", parameters.chainId);
4244
4244
  const response = await (0,http_helpers_namespaceObject.get)(url.href, this.headers(parameters.selectedAddress));
4245
4245
  return response.success ? response.data : [];
4246
4246
  } catch (error) {