pancakeswap / pancake-frontend

:pancakes: Pancake main features (farms, pools, IFO, lottery, profiles)
https://pancakeswap.finance
GNU General Public License v3.0
2.7k stars 3.54k forks source link

install on localhost but cant run on testnet #599

Closed EricGerbers closed 3 years ago

EricGerbers commented 3 years ago

when I clone to my pc, install and run in testnet, Farms functions not work. I cant Approve LP

this is my config: 1) in .env.development REACT_APP_NODE_1 = "https://data-seed-prebsc-1-s1.binance.org:8545" REACT_APP_NODE_2 = "https://data-seed-prebsc-2-s1.binance.org:8545" REACT_APP_NODE_3 = "https://data-seed-prebsc-1-s2.binance.org:8545"

2) config Metamask run with BSC Testnet and ready have some BNB token

Please let me know why ? I want research this projects. Thanks so much.

hannawaffle commented 3 years ago

Don't forget to also change the chain id

Where it says

REACT_APP_CHAIN_ID = "56"

Use the one from the docs https://docs.binance.org/smart-chain/developer/rpc.html#testnetchainid-0x61-97-in-decimal

EricGerbers commented 3 years ago

Yes, I was change to 97

EricGerbers commented 3 years ago

and I see in file src/state/farms/fetchFarms.ts line 72 this code have an error but I dont know why.

image

@RabbitDoge Please review and help me. pls

RabbitDoge commented 3 years ago

A lot of contract don't have a testnet address , check the config files