pancake-swap-interface-v1
pancake-swap-interface-v1 copied to clipboard
fix: unknown chain id for weth contract
- [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
Deploy request for swap-master rejected.
Rejected with commit c2ceb39d32fe72a39fa2f2cf0b4440e4ede57787
https://docs.netlify.com/configure-builds/environment-variables/#sensitive-variable-policy