Brushfam / openbrush-contracts

https://openbrush.io
MIT License
25 stars 10 forks source link

error: failed to get `openbrush` as a dependency #130

Closed danielNg25 closed 1 year ago

danielNg25 commented 1 year ago

I got this following error when build my psp22 contract

error: failed to get `openbrush` as a dependency of package `my_psp22 v1.0.0 (/Users/danielng/WorkStation/Personal/Ink!/erc20)`

Caused by:
  failed to load source for dependency `openbrush`

Caused by:
  Unable to update https://github.com/Brushfam/openbrush-contracts?tag=v4.0.0-beta

Caused by:
  failed to find tag `v4.0.0-beta`

Caused by:
  reference 'refs/remotes/origin/tags/v4.0.0-beta' not found; class=Reference (4); code=NotFound (-3)

This is my Cargo.toml

[dependencies]

ink = { version = "4.2.1", default-features = false }

scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.6", default-features = false, features = ["derive"], optional = true }

# Include brush as a dependency and enable default implementation for PSP22 via brush feature
openbrush = { tag = "v4.0.0-beta", git = "https://github.com/Brushfam/openbrush-contracts", default-features = false, features = ["ownable, psp22"] }

[lib]
name = "my_psp22"
path = "lib.rs"

[features]
default = ["std"]
std = [
    "ink/std",
    "scale/std",
    "scale-info/std",
    "openbrush/std",
]
ink-as-dependency = [] 
coreggon11 commented 1 year ago

You have a wrong tag, it should be 4.0.0-beta instead of v4.0.0-beta