Cover photo

Deploying HelloWormhole

Wormhole is a crosschain protocol that supports more than 30 blockchains for cross-network messaging.

Today we will deploy a simple smart contract of the Wormhole project in two test networks: the Avax testnet and the Celo testnet. And at the end we will send messages between them

1. Preparing

All actions will be performed in the Visual Studio Code program. If you don't have it, you can install it by clicking here:

https://code.visualstudio.com/download

Create a Wormhole folder and open it in VS Code. Open a new terminal:

post image

Install the necessary components:

The next step is to request test tokens:

2. Deploying the smart contract

Start typing commands one by one in the VS Code program terminal:

git clone https://github.com/wormhole-foundation/hello-wormhole.git
cd hello-wormhole
npm run build
forge test
This is the result after the last command
This is the result after the last command

Next command:

EVM_PRIVATE_KEY=your_wallet_private_key npm run deploy
If you've done everything right, your contract will deploy on two networks
If you've done everything right, your contract will deploy on two networks

Let's send messages

EVM_PRIVATE_KEY=your_wallet_private_key npm run test
This is the message you will get on a successful test
This is the message you will get on a successful test

Congratulations! You have successfully deployed a smart contract and successfully sent messages!

Wormhole socials

Discord     X (Twitter)     Website