@morpho-dev/router 0.0.27 → 0.1.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.
@@ -40,7 +40,7 @@ function getChain(chainId) {
40
40
  return chains[chainName];
41
41
  }
42
42
  var getWhitelistedChains = () => {
43
- return [chains.ethereum, chains["ethereum-virtual-testnet"]];
43
+ return [chains.ethereum, chains.base, chains["ethereum-virtual-testnet"]];
44
44
  };
45
45
  var chains = {
46
46
  ethereum: {
@@ -827,7 +827,7 @@ function connect(opts) {
827
827
  if (u.protocol !== "http:" && u.protocol !== "https:") {
828
828
  throw new InvalidUrlError(u.toString());
829
829
  }
830
- const headers = new Headers();
830
+ const headers = opts?.headers ?? new Headers();
831
831
  headers.set("Content-Type", "application/json");
832
832
  opts?.apiKey !== void 0 ? headers.set("X-API-Key", opts.apiKey) : null;
833
833
  const config = {