anysniper / Frontend

Trading Platform (Sniping, Copy Trading) on Decentralized Exchanges. A proven multichain sniping bot
https://x.com/Anysniper_
39 stars 46 forks source link

It doesn't work on other chains other than Ethereum mainnet #10

Closed luggys closed 1 year ago

luggys commented 1 year ago

It just only works on Ethereum mainnet. When I switch to other network(BSC) the page stucks at loading screen.

anysniper_issue

anysniper commented 1 year ago

You can open developer console by pressing F12 or right click => Inspect.

And see what's wrong. Maybe this is because of wrong configration like contract address in config.js

You can share your console log

Varjokettu commented 1 year ago

You can open developer console by pressing F12 or right click => Inspect.

And see what's wrong. Maybe this is because of wrong configration like contract address in config.js

You can share your console log

Wait what! Owner still replying here!?

And I noticed you updated the readme with warning about the scammers in telegram/other socials.

Big thanks <3

Btw, I've been trying to contact you for a while now. If you feel like, send me a DM in telegram: https://t.me/Varjokettu

luggys commented 1 year ago

You can open developer console by pressing F12 or right click => Inspect.

And see what's wrong. Maybe this is because of wrong configration like contract address in config.js

You can share your console log

Here is the console log

[HMR] Waiting for update signal from WDS... vue.runtime.esm.js?2b0e:8784 Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools accounts.js?1e66:212 account fetch error TypeError: accountsJSON is not iterable at Store.fetch (accounts.js?1e66:206:1) at Array.wrappedActionHandler (vuex.esm.js?2f62:851:1) at Store.dispatch (vuex.esm.js?2f62:516:1) at Store.boundDispatch [as dispatch] (vuex.esm.js?2f62:406:1) at Vue.eval (index.js?4360:47:1) at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:3017:1) at Vue.$emit (vue.runtime.esm.js?2b0e:3716:1) at Web3Helper.initAccount (Web3.js?7459:308:1) at async Vue.eval (Web3.js?7459:233:1) 28App.vue?234e:158 Error: Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced. at f.decodeParametersWith (web3.min.js?c0d8:2:1) at f.decodeParameters (web3.min.js?c0d8:2:1) at y._decodeMethodReturn (web3.min.js?c0d8:2:1) at m.outputFormatter (web3.min.js?c0d8:2:1) at m.formatOutput (web3.min.js?c0d8:2:1) at a (web3.min.js?c0d8:2:1) at a (web3.min.js?c0d8:2:1) at h.run (web3.min.js?c0d8:2:1) at l (web3.min.js?c0d8:2:1)

It gives "account fetch error"

luggys commented 1 year ago

I solve the issue by changing;

src\store\modules\accounts.js line 206 for (let account in accountsJSON) {

src\helpers\web3.js line 370 and 371

const web3 = new Web3(new Web3.providers.HttpProvider(Config.MAINNET_RPC)); const sniper = new web3.eth.Contract(ABI.TokenABI, Config.SNIPER_ADDRESS);