axelarnetwork / support

Your source for support with the Axelar Network
3 stars 1 forks source link

Axelar examples not working #29

Closed Olanetsoft closed 10 months ago

Olanetsoft commented 10 months ago

I want to use this link: https://github.com/axelarnetwork/axelar-examples/tree/main/examples-web but when i run it i get this error:

Unhandled Runtime Error
Error: invalid contract address or ENS name (argument="addressOrName", value=undefined, code=INVALID_ARGUMENT, version=contracts/5.6.2)

Source
src/types/factories/contracts/call-contract/MessageSender__factory.ts (108:11) @ Function.connect

  106 |     signerOrProvider: Signer | Provider
  107 |   ): MessageSender {
> 108 |     return new Contract(address, _abi, signerOrProvider) as MessageSender;
      |           ^
  109 |   }
  110 | }
Olanetsoft commented 10 months ago

To fix this: Run npm run start to start the local chains on a separate terminal and leave it up and running.

Navigate to the examples-web directory. -- Run npm ci to install dependencies. -- Run npm run setup to copy the private key and mnemonic from the .env file at the root directory to the .env file in the examples-web directory. -- Run npm run deploy to compile all smart contracts, generate types for smart contract functions, and deploy to the local network.

Then, Run `npm run dev to start the web application server.