Skip to main content

Hyperlane CLI

info

The standard Hyperlane CLI relies on the eth_getStorageAt method, which is incompatible with Sapphire by default. To address this, use the custom branch of the Hyperlane CLI or follow the guidance in the Troubleshooting section of Hyperlane.

For more details about eth_getStorageAt on Sapphire, refer to the Sapphire documentation.

Installation

  1. Clone the Sapphire-compatible branch:

    git clone https://github.com/hyperlane-xyz/hyperlane-monorepo.git --branch pb/storage-workaround
    cd hyperlane-monorepo
  2. Install dependencies and build the project:

    yarn install && yarn build

Usage

Run the modified CLI:

yarn workspace @hyperlane-xyz/cli hyperlane

Hyperlane Core Deployment

For guidance on how to use the modified CLI for deploying the Hyperlane Core on Sapphire, refer to the official deploy documentation.