Issue adding Standards library to project

Hi,

I’m having an issue adding the Sway Standards library to my project. The project was created by Forc.

What would you recommend I do?
Thanks in advance for any help you can provide :heart:

The error I get is below

error: Failed to resolve manifest reference: https://github.com/FuelLabs/sway-standards tag=v0.6.2

My Forc.toml file is below

[project]
authors = ["Owner"]
entry = "main.sw"
license = "Apache-2.0"
name = "nft-contract"

[dependencies]
standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.6.2" }

$ fuelup show result below

Installed toolchains
--------------------
latest-aarch64-apple-darwin (default)
testnet-aarch64-apple-darwin

active toolchain
----------------
latest-aarch64-apple-darwin (default)
  forc : 0.66.5
    - forc-client
      - forc-deploy : 0.66.5
      - forc-run : 0.66.5
    - forc-crypto : 0.66.5
    - forc-debug : 0.66.5
    - forc-doc : 0.66.5
    - forc-fmt : 0.66.5
    - forc-lsp : 0.66.5
    - forc-tx : 0.66.5
    - forc-wallet : 0.11.1
  fuel-core : 0.40.0
  fuel-core-keygen : 0.40.0

fuels versions
--------------
forc : 0.66.10
forc-wallet : 0.66.9

Hey @EncryptedChange, I will able to reproduce the issue. I will report it to the team and will keep you posted. Meanwhile, you can downgrade the version of the sway-standards from 0.6.2 to 0.6.1 and that should work. Lmk if you are facing any other issue

2 Likes

Hi @Nazeeh21 thanks for that fix. It worked. Your help is greatly appreciated.
Btw I had to do the same fix to the Sway Libs dependency as well, maybe it’s some sort of caching issue.

1 Like

Thanks @EncryptedChange, yes probably that might be an issue

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.