Skip to main content
added 46 characters in body
Source Link
Jonas H.
  • 7.2k
  • 1
  • 7
  • 26

Hey looks like the dependencies are not correct, anchor-lang 0.25 expects also anchor-slp 0.25. Also it should be init-if-needed not init_if_needed try

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
anchor-spl = "0.25.0"
mpl-token-metadata = { version = "1.2.5", features = [ "no-entrypoint" ] }

You can check the correct dependencie here: https://crates.io/crates/anchor-spl/0.25.0/dependencies

Hey looks like the dependencies are not correct, try

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
anchor-spl = "0.25.0"
mpl-token-metadata = { version = "1.2.5", features = [ "no-entrypoint" ] }

You can check the correct dependencie here: https://crates.io/crates/anchor-spl/0.25.0/dependencies

Hey looks like the dependencies are not correct anchor-lang 0.25 expects also anchor-slp 0.25. Also it should be init-if-needed not init_if_needed try

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
anchor-spl = "0.25.0"
mpl-token-metadata = { version = "1.2.5", features = [ "no-entrypoint" ] }

You can check the correct dependencie here: https://crates.io/crates/anchor-spl/0.25.0/dependencies

Source Link
Jonas H.
  • 7.2k
  • 1
  • 7
  • 26

Hey looks like the dependencies are not correct, try

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
anchor-spl = "0.25.0"
mpl-token-metadata = { version = "1.2.5", features = [ "no-entrypoint" ] }

You can check the correct dependencie here: https://crates.io/crates/anchor-spl/0.25.0/dependencies