# SUI move.toml build failed testnet / mainnet get sui price feed

**URL:** <https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158>\
**Category:** Price Feeds\
**Created:** [May 15, 2025, 4:11pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158 "2025-05-15T16:11:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![frongrider2](https://yyz2.discourse-cdn.com/flex034/user_avatar/dev-forum.pyth.network/frongrider2/32/51_2.png) [@frongrider2](https://dev-forum.pyth.network/u/frongrider2)\
**Post date:** [May 15, 2025, 4:11pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/1 "2025-05-15T16:11:58Z")

</div>

I got error when build move file. I guess it error by version of Wormhole

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/dev_pyth/original/1X/316af812562a3db5f52c52b549b69e77f89853c5.png)

---

<div class="post-metadata">

**Author:** ![sabrebar](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sabrebar](https://dev-forum.pyth.network/u/sabrebar)\
**Post date:** [May 15, 2025, 4:56pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/2 "2025-05-15T16:56:40Z")

</div>

I had same error, try to use local dependencies

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 19, 2025, 5:38pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/3 "2025-05-19T17:38:34Z")

</div>

I am facing the same issue, did u find any solution for this ?

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 19, 2025, 5:49pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/4 "2025-05-19T17:49:05Z")

</div>

Hi, can u guide me on how to resolve this? and what do u mean by local dependencies?

---

<div class="post-metadata">

**Author:** ![darunrs](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@darunrs](https://dev-forum.pyth.network/u/darunrs)\
**Post date:** [May 19, 2025, 7:17pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/5 "2025-05-19T19:17:07Z")

</div>

Hey. What is the exact process you are doing that results in this error? I can go into the target\_chains/sui/contracts folder and run Sui move build and things build just fine, for example. And as sabrebar mentioned, if you either pull the wormhole and pyth crosschain or add them as submodules, it also seems to work fine. We need to figure out what step in the process is leading to the issue.

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 19, 2025, 7:20pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/6 "2025-05-19T19:20:30Z")

</div>

I just copied the move.toml file from the docs and tried building but it gave me err

---

<div class="post-metadata">

**Author:** ![darunrs](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@darunrs](https://dev-forum.pyth.network/u/darunrs)\
**Post date:** [May 19, 2025, 9:33pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/7 "2025-05-19T21:33:40Z")

</div>

Gotcha, thanks for letting me know! The issue generally seems to be that the branches for the wormhole dependency are no longer present. I’m not sure when this happened. I’ll reach out to them to see what’s wrong. In the mean time, I will update the Pyth branches and docs. I’ll let you know ASAP when the changes are in. And you can try again with those. Sorry for the delay as we investigated this issue! If the changes don’t fix the issue, we can proceed from there.

---

<div class="post-metadata">

**Author:** ![darunrs](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@darunrs](https://dev-forum.pyth.network/u/darunrs)\
**Post date:** [May 19, 2025, 9:42pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/8 "2025-05-19T21:42:08Z")

</div>

Funny enough, changing the docs might take some time. In the meantime, can you try this TOML?

```auto
[dependencies.Pyth]
git = "https://github.com/pyth-network/pyth-crosschain.git"
subdir = "target_chains/sui/contracts"
rev = "sui-contract-mainnet"
 
[dependencies.Wormhole]
git = "https://github.com/wormhole-foundation/wormhole.git"
subdir = "sui/wormhole"
rev = "sui/mainnet"
 
# Pyth is locked into this specific `rev` because the package depends on Wormhole and is pinned to this version.
 
[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"
 

```

Change mainnet to testnet if appropriate.

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 20, 2025, 4:24am UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/9 "2025-05-20T04:24:16Z")

</div>

I tried using the testnet and still faced the same err

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/dev_pyth/original/1X/25bfedb328fdd5628b17d40e40c20ebf1aa08fc5.png)

move.toml file -

[package]  
name = “prediction\_market”  
version = “0.0.1”  
edition = “2024.beta”

[dependencies.Pyth]  
git = “[GitHub - pyth-network/pyth-crosschain: Crosschain Pyth programs and utilities](https://github.com/pyth-network/pyth-crosschain.git)”  
subdir = “target\_chains/sui/contracts”  
rev = “sui-contract-testnet”

[dependencies.Wormhole]  
git = “[GitHub - wormhole-foundation/wormhole: A reference implementation for the Wormhole blockchain interoperability protocol.](https://github.com/wormhole-foundation/wormhole.git)”  
subdir = “sui/wormhole”  
rev = “sui/testnet”

[dependencies.Sui]  
git = “[GitHub - MystenLabs/sui: Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language](https://github.com/MystenLabs/sui.git)”  
subdir = “crates/sui-framework/packages/sui-framework”  
rev = “041c5f2bae2fe52079e44b70514333532d69f4e6”

[addresses]  
prediction\_market = “0x0” # Replace with actual package address after publish  
pyth = “0x04e20ddf36af412a4096f9014f4a565af9e812db9a05cc40254846cf6ed0ad91”  
wormhole = “0x5306f64e312b581766351c07af79c72fcb1cd25147157fdc2f8ad76de9a3fb6a”  
sui = “0x2”

[dev-addresses]  
pyth = “0x100”  
wormhole = “0x200”

---

<div class="post-metadata">

**Author:** ![darunrs](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@darunrs](https://dev-forum.pyth.network/u/darunrs)\
**Post date:** [May 20, 2025, 6:54pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/10 "2025-05-20T18:54:53Z")

</div>

Your addresses are the mainnet addresses. Remove the pyth and wormhole addresses. The dependency branch should correctly set them based on mainnet/testnet. Try that and let me know if it works.

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 21, 2025, 9:38am UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/11 "2025-05-21T09:38:57Z")

</div>

still does not work

[package]  
name = “prediction\_market”  
version = “0.0.1”  
edition = “2024.beta”

[dependencies.Pyth]  
git = “[GitHub - pyth-network/pyth-crosschain: Crosschain Pyth programs and utilities](https://github.com/pyth-network/pyth-crosschain.git)”  
subdir = “target\_chains/sui/contracts”  
rev = “sui-contract-testnet”

[dependencies.Wormhole]  
git = “[GitHub - wormhole-foundation/wormhole: A reference implementation for the Wormhole blockchain interoperability protocol.](https://github.com/wormhole-foundation/wormhole.git)”  
subdir = “sui/wormhole”  
rev = “sui/testnet”

[dependencies.Sui]  
git = “[GitHub - MystenLabs/sui: Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language](https://github.com/MystenLabs/sui.git)”  
subdir = “crates/sui-framework/packages/sui-framework”  
rev = “041c5f2bae2fe52079e44b70514333532d69f4e6”

[addresses]  
prediction\_market = “0x0”  
sui = “0x2”

[dev-addresses]  
pyth = “0x100”  
wormhole = “0x200”

---

<div class="post-metadata">

**Author:** ![darunrs](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@darunrs](https://dev-forum.pyth.network/u/darunrs)\
**Post date:** [May 21, 2025, 11:11pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/12 "2025-05-21T23:11:53Z")

</div>

I created a new sui project called my\_first\_package and put the following as my Move.toml, ran sui move build, and it did build. Can you try the same? If it doesn’t work, I wonder if perhaps the Sui version you have installed is different. Or if cached build artifacts are causing issues. Can you delete the ~/.move folder? It contains cached build artifacts.

```auto
[package]
name = "my_first_package"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"]

[dependencies.Pyth]
git = "https://github.com/pyth-network/pyth-crosschain.git"
subdir = "target_chains/sui/contracts"
rev = "sui-contract-testnet"
 
[dependencies.Wormhole]
git = "https://github.com/wormhole-foundation/wormhole.git"
subdir = "sui/wormhole"
rev = "sui/testnet"
 
# Pyth is locked into this specific `rev` because the package depends on Wormhole and is pinned to this version.
 
[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"

[addresses]
my_first_package = "0x0"
sui = "0x2"

[dev-addresses]
pyth = "0x100"
wormhole = "0x200"

```

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 22, 2025, 10:35pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/13 "2025-05-22T22:35:17Z")

</div>

Nothing seems to work

---

<div class="post-metadata">

**Author:** ![Rajshah1302](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rajshah1302](https://dev-forum.pyth.network/u/Rajshah1302)\
**Post date:** [May 22, 2025, 11:48pm UTC](https://dev-forum.pyth.network/t/sui-move-toml-build-failed-testnet-mainnet-get-sui-price-feed/158/14 "2025-05-22T23:48:57Z")

</div>

* * *

# How to resolve your Pyth integration problem step-by-step

* * *

### Step 1: Clone necessary repos locally

```bash
git clone https://github.com/pyth-network/pyth-crosschain
git clone https://github.com/wormhole-foundation/wormhole

```

Clone the repositories **into folders relative to your project** , so you can refer to them locally.

* * *

### Step 2: Use local dependencies in your project’s `Move.toml`

Edit your project’s `Move.toml` and add local paths for these dependencies, adjusting paths according to where you cloned:

```toml
[dependencies.Pyth]
local = "../../../pyth-crosschain/target_chains/sui/contracts"

[dependencies.Wormhole]
local = "../../../wormhole/sui/wormhole"

[dependencies.usdc]
local = "../../../stablecoin-sui/packages/usdc"

[addresses]
wormhole = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94"
pyth = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"

```

* * *

### Step 3: Update `pyth-crosschain` Move package config

In `pyth-crosschain/target_chains/sui/contracts/Move.toml`, ensure dependencies and addresses are correctly set:

```toml
[package]
name = "Pyth"
version = "0.0.2"
published-at = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"

[dependencies.Sui]
git = "https://github.com/MystenLabs/sui.git"
subdir = "crates/sui-framework/packages/sui-framework"
rev = "041c5f2bae2fe52079e44b70514333532d69f4e6"

[dependencies.Wormhole]
# Use local for development:
local = "../../../../wormhole/sui/wormhole"

[addresses]
pyth = "0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837"
wormhole = "0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94"

```

* * *

### Step 4: Publish the contracts

Use the Sui CLI to publish your contracts with dependency verification skipped (helpful for local development):

```bash
sui client publish --skip-dependency-verification --silence-warnings

```

* * *

### Additional tips:

- Adjust all relative paths carefully based on your actual folder structure.
- Ensure named addresses in your project and dependencies align exactly.
- If you update addresses or paths, always rebuild and republish.

* * *
