ergoplatform / ergo-headless-dapp-framework

An easy to use framework for building Ergo headless dApps. Developed by EMURGO and Ergo Platform.
MIT License
25 stars 5 forks source link

can't import ergo-headless-dapp-framework #3

Closed gmorningman closed 2 years ago

gmorningman commented 2 years ago

started to follow the Math Bounty Headless dApp tutorial, however, I am unable to continue as I get dependency issues.

cargo file

[package]
name = "ergo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ergo-headless-dapp-framework = "0.1.11"

error

failed to select a version for the requirement `elliptic-curve = "^0.5.0"`
candidate versions found which didn't match: 0.11.6, 0.11.5, 0.11.4, ...
location searched: crates.io index
required by package `ergo-lib v0.5.1`
    ... which satisfies dependency `ergo-lib = "^0.5.1"` of package `ergo-headless-dapp-framework v0.1.11`
    ... which satisfies dependency `ergo-headless-dapp-framework = "^0.1.11"` of package `ergo v0.1.0 (D:\software\code\rust\ergo)`
greenhat commented 2 years ago

Thanks! I updated the dependencies in https://github.com/ergoplatform/ergo-headless-dapp-framework/pull/4 and now it should work fine.