# How to run price-feed at local side

**URL:** <https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355>\
**Category:** Price Feeds\
**Tags:** move\
**Created:** [August 13, 2025, 6:06am UTC](https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355 "2025-08-13T06:06:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anna](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anna](https://dev-forum.pyth.network/u/anna)\
**Post date:** [August 13, 2025, 6:06am UTC](https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355/1 "2025-08-13T06:06:23Z")

</div>

> 

**🛠 When asking for support, please include:**

• 🔗 **Chain** Sui localnet

• ⏱ **Timestamp** of the issue (block time or UTC)

• 🧪 **Steps to reproduce**

I want to run a local price-feed. So my contract on localnet can access oracle at the local side

---

<div class="post-metadata">

**Author:** ![nidhi](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@nidhi](https://dev-forum.pyth.network/u/nidhi)\
**Post date:** [August 13, 2025, 7:30am UTC](https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355/2 "2025-08-13T07:30:37Z")

</div>

It is answered in [here](https://dev-forum.pyth.network/t/guide-on-testing-pyth-feeds-in-local-sui-move-environment/110) , hope this helps @anna

Would recommend searching the forum before asking a new question, many times someone else would have asked it 🙂

---

<div class="post-metadata">

**Author:** ![anna](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anna](https://dev-forum.pyth.network/u/anna)\
**Post date:** [August 13, 2025, 2:48pm UTC](https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355/3 "2025-08-13T14:48:44Z")

</div>

Hi sadly the Sui version seems to be too old. A lot of things don’t work. See the following example Move.toml

[//Move.toml](https://Move.toml)

[package]

name = “pptest”

edition = “2024.beta” # edition = “legacy” to use legacy (pre-2024) Move

[addresses]

pptest = “0x0”

[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 = “27bba80a8cb231254692660073877c6932adbabc”

[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 = “82d82bffd5a8566e4b5d94be4e4678ad55ab1f4f”

# Pyth is locked into this specific `rev` because the package depends on Wormhole and is pinned to this version.

[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”

When I ran `sui move test`

it returns

`  
error[E02015]: invalid attribute

┌─ /Users/anna/.move/https\_\_\_github\_com\_MystenLabs\_sui\_git\_041c5f2bae2fe52079e44b70514333532d69f4e6/crates/sui-framework/packages/move-stdlib/tests/type\_name\_tests.move:87:13

│

87 │ #[test, expected\_failure = std::type\_name::ENonModuleType]

│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Attribute ‘expected\_failure’ does not support assignment. Expected either ‘#[expected\_failure]’ or #[expected\_failure(, …)]’

error[E02015]: invalid attribute

┌─ /Users/anna/.move/https\_\_\_github\_com\_MystenLabs\_sui\_git\_041c5f2bae2fe52079e44b70514333532d69f4e6/crates/sui-framework/packages/move-stdlib/tests/type\_name\_tests.move:92:13

│

92 │ #[test, expected\_failure = std::type\_name::ENonModuleType]

│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Attribute ‘expected\_failure’ does not support assignment. Expected either ‘#[expected\_failure]’ or #[expected\_failure(, …)]’

error[E02015]: invalid attribute

┌─ /Users/anna/.move/https\_\_\_github\_com\_MystenLabs\_sui\_git\_041c5f2bae2fe52079e44b70514333532d69f4e6/crates/sui-framework/packages/move-stdlib/tests/type\_name\_tests.move:97:13

│

97 │ #[test, expected\_failure = std::type\_name::ENonModuleType]

│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Attribute ‘expected\_failure’ does not support assignment. Expected either ‘#[expected\_failure]’ or #[expected\_failure(, …)]’

error[E02015]: invalid attribute

```
┌─ /Users/anna/.move/https___github_com_MystenLabs_sui_git_041c5f2bae2fe52079e44b70514333532d69f4e6/crates/sui-framework/packages/move-stdlib/tests/type_name_tests.move:102:13

│

```

102 │ #[test, expected\_failure = std::type\_name::ENonModuleType]

```
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Attribute 'expected_failure' does not support assignment. Expected either '#\[expected_failure\]' or #\[expected_failure(<arg>, ...)\]'

```

```

---

<div class="post-metadata">

**Author:** ![nidhi](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@nidhi](https://dev-forum.pyth.network/u/nidhi)\
**Post date:** [August 15, 2025, 1:08pm UTC](https://dev-forum.pyth.network/t/how-to-run-price-feed-at-local-side/355/4 "2025-08-15T13:08:02Z")

</div>

Thank you for reporting it Ana, I see you have raised a separate issue for this. Going to track it there.
