axelarnetwork / axelar-examples

Sample cross-chain dapps & contracts using the Axelar protocol.
182 stars 163 forks source link

npm run check-balance local doesn't work #172

Closed devguru84 closed 6 months ago

devguru84 commented 6 months ago

I followed all the steps. I run the local chain using npm run start and it says 'Serving 5 networks on port 8500'. But when I am going to run npm run check-balance local it says 'could not detect network'. Same error occurs when I try on examples-web sample.

Olanetsoft commented 6 months ago

@devguru84 When you run the command:

npm run start

You should leave this node running on a separate terminal before deploying and testing. Then, run npm run check-balance local on another terminal.

devguru84 commented 6 months ago

@Olanetsoft, I did it correctly.

npm run start on one terminal and npm run check-balance local on another terminal. But the error occurs when it is going to connect the RPC.(http://localhost:8500/1)

devguru84 commented 6 months ago

Screenshot_4 And I found that this code doesn't work correctly. runCheckBalance.js It displays nothing on current code and I found it couldn't retrieve chains correctly and I changed that part. Not sure, how it works on others.

devguru84 commented 6 months ago

I fixed the issue, @Olanetsoft Thanks for your help. There was a problem with my network configuration. I can see the balances now. Thanks.