@toruslabs/ethereum-controllers 5.2.7 → 5.2.9

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.
@@ -3762,7 +3762,7 @@ class PreferencesController extends BasePreferencesController {
3762
3762
  async fetchEtherscanTx(parameters) {
3763
3763
  try {
3764
3764
  const url = new URL(`${this.config.api}/etherscan`);
3765
- Object.keys(parameters).forEach(key => url.searchParams.append(key, parameters[key]));
3765
+ url.searchParams.append("chainId", parameters.chainId);
3766
3766
  const response = await get(url.href, this.headers(parameters.selectedAddress));
3767
3767
  return response.success ? response.data : [];
3768
3768
  } catch (error) {