Skip to content

Cannot run sol-contract example #83

@5elfle5

Description

@5elfle5
  1. cd examples/sol-contract
  2. cargo build
    error
    no method named get_current_pricefound for structPriceFeed in the current scope
    examples/sol-contract/src/processor.rs:87:33
    let result1 = feed1.get_current_price().ok_or(ProgramError::Custom(3))?;

If I rollback to commit 'An example contract for solana (#72)' I can go one step further:

  1. cd examples/sol-contract
  2. cargo build
  3. cd scripts
  4. sh build.sh

error
error: failed to select a version for the requirement time = "^0.3"
candidate versions found which didn't match: 0.3.15, 0.3.14, 0.3.13,

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