Skip to content

Commit

Permalink
chore: refactor README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Dec 14, 2023
1 parent 6d83761 commit 26a2126
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions examples/cosmos/call-contract/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
# Call Contract

This examples demonstrates on how you deploy a smart contract and sending message between evm chain and cosmos chain with Axelar.
This example demonstrates how to deploy a smart contract and facilitate communication between an EVM chain and a Cosmos chain using Axelar.

## Prerequisite

- Docker running on your local machine.

## Build a Contract (Optional)

We've precompiled the contract [here](../cosmos/call-contract/wasm-contract/artifacts/send_receive.wasm), but if you'd like to modify some code, here's how you can recompile it:
1. A precompiled version of the contract is available [here](../cosmos/call-contract/wasm-contract/artifacts/send_receive.wasm). If you wish to modify the contract, follow these steps to recompile it:

```
npm run build-wasm
```

Once completed, you should see the [wasm](./wasm-contract/artifacts/send_receive.wasm) file.
2. Upon successful compilation, the wasm file will be available at [this location](./wasm-contract/artifacts/send_receive.wasm).
Note: This wasm file is necessary for deploying the contract on the wasm chain as part of this example.

We will use this file to deploy to the wasm chain for this example.
## Deploying the Contract

## Deploy a Contract
To deploy the contract to the wasm chain and evm chains, execute the following command:

```
npm run deploy cosmos/call-contract local
```

## Execute example

To run the example and see the contract in action, use the following command:

```
npm run execute cosmos/call-contract local
```

0 comments on commit 26a2126

Please sign in to comment.