Skip to content

Error while running test-cases for place order in supra_oracle_storage for function get_price #3

@TusharSync

Description

@TusharSync

Issue Summary:

The T_execute_increase_market_order unit test for the trading module failed with the following error:

error[E11001]: test failure
┌── T_execute_increase_market_order ──────
│    ┌─ /root/.move/https___github_com_Entropy-Foundation_dora-interface_master/supra/testnet/core/sources/supra_oracle_storage.move:24:23
│    │
│ 24 │     native public fun get_price(pair: u32): (u128, u16, u64, u64);
│    │                       ^^^^^^^^^
│    │                       │
│    │                       INTERNAL TEST ERROR: Unexpected Verification Error
│ Test was not expected to error, but it gave a MISSING_DEPENDENCY (code 1021) error with error message: "Missing Native Function `get_price`". 
│ Error originating in the module 5615001f63d3223f194498787647bb6f8d37b8d1e6773c00dcdd894079e56190::supra_oracle_storage
│
│ stack trace
│       trading::execute_order_internal(/supra/configs/move_workspace/test/trading-vault/sources/trading.move:1205)
│       trading::execute_order(/supra/configs/move_workspace/test/trading-vault/sources/trading.move:1140-1145)
│       trading::T_execute_increase_market_order(/supra/configs/move_workspace/test/trading-vault/sources/trading.move:2669)
└──────────────────

Test Result: FAILED. Total tests: 1; passed: 0; failed: 1

Error Details:

  • Error Code: MISSING_DEPENDENCY (code 1021)
  • Message: "Missing Native Function get_price"
  • Originating Module: 5615001f63d3223f194498787647bb6f8d37b8d1e6773c00dcdd894079e56190::supra_oracle_storage

Description:

The test failure occurred during the execution of T_execute_increase_market_order, where the system unexpectedly encountered a missing dependency error for the get_price native function, which is defined in supra_oracle_storage.move.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions