pancake-swap-interface-v1 icon indicating copy to clipboard operation
pancake-swap-interface-v1 copied to clipboard

fix: unknown chain id for weth contract

Open Johann-S opened this issue 3 years ago • 1 comments

  • [x] Before opening a pull request, please read the contributing guidelines first
  • [x] If your PR is work in progress, open it as draft
  • [x] Before requesting a review, all the checks need to pass
  • [x] Explain what your PR does

It seems sometimes chainId is equal to 1 and it's not supported in the WETH object, so I added a simple check to handle that case.

Fixes: #124

Johann-S avatar Feb 17 '21 14:02 Johann-S

Deploy request for swap-master rejected.

Rejected with commit c2ceb39d32fe72a39fa2f2cf0b4440e4ede57787

https://docs.netlify.com/configure-builds/environment-variables/#sensitive-variable-policy

netlify[bot] avatar Feb 17 '21 14:02 netlify[bot]