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
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
It is answered in here , hope this helps @anna
Would recommend searching the forum before asking a new question, many times someone else would have asked it ![]()
Hi sadly the Sui version seems to be too old. A lot of things don’t work. See the following example 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 "
subdir = “target_chains/sui/contracts”
rev = “27bba80a8cb231254692660073877c6932adbabc”
[dependencies.Wormhole]
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]
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>, ...)\]'
`
Thank you for reporting it Ana, I see you have raised a separate issue for this. Going to track it there.