Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicts when adding pallet to substrate-node-template #9

Open
MatthewDarnell opened this issue Sep 2, 2020 · 10 comments
Open

Conflicts when adding pallet to substrate-node-template #9

MatthewDarnell opened this issue Sep 2, 2020 · 10 comments

Comments

@MatthewDarnell
Copy link

I am running substrate-node-template version v2.0.0-rc6. I am able to build the stock image fine.

When I add

[dependencies.pallet-did]
default-features = false
git = 'https://github.com/substrate-developer-hub/pallet-did.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

to runtime/Cargo.toml and try to build I get the following error:

    Updating git repository `https://github.com/substrate-developer-hub/pallet-did.git`
    Updating git repository `https://github.com/paritytech/substrate.git`
    Updating crates.io index
error: failed to select a version for `parity-util-mem`.
    ... required by package `sp-core v2.0.0-rc4 (https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f)`
    ... which is depended on by `frame-support v2.0.0-rc4 (https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f)`
    ... which is depended on by `frame-system v2.0.0-rc4 (https://github.com/paritytech/substrate.git?tag=v2.0.0-rc4#00768a1f)`
    ... which is depended on by `pallet-did v2.0.0-rc4 (https://github.com/substrate-developer-hub/pallet-did.git?tag=v2.0.0-rc4#03d58d86)`
    ... which is depended on by `node-template-runtime v2.0.0-rc6 (/home/ubuntu/Documents/synced/runtime)`
    ... which is depended on by `node-template v2.0.0-rc6 (/home/ubuntu/Documents/synced/node)`
versions that meet the requirements `^0.6.1` are: 0.6.1

I have also followed HOWTO.md and changed the version to rc3, same issue.

@srinjoychakravarty
Copy link

I get the same issue when trying to install the EVM Pallet version 2.0.0 into a substrate template version 3.0.0 when following the first section of the Frontier Workshop

Please help!

@sacha-l
Copy link

sacha-l commented May 19, 2021

Hi @srinjoychakravarty - for the path of least resistance, closely follow the commits that that Fronier workshop is based on. This diff also gives you what you'll need to make things compile. For EVM pallet version 2.0.0 its advised to stick to the Node template 2.0. Hope this helps!

@srinjoychakravarty
Copy link

@sacha-l is there any node config that has both the evm pallet and the ink contracts pallet combined that you can point me to? Or is this currently not possible due to version mismatch... 🤔

@sacha-l
Copy link

sacha-l commented May 20, 2021

It's possible if you configure it yourself :)

@NunoAlexandre
Copy link

@MatthewDarnell did you find a solution in the end?

@MatthewDarnell
Copy link
Author

MatthewDarnell commented Oct 6, 2021

@NunoAlexandre
I don't remember but I don't think so, I usually follow up open issues/questions with a found solution.

@marcocomo
Copy link

I have the same problem...@MatthewDarnell did you solve it?

@MatthewDarnell
Copy link
Author

I have the same problem...@MatthewDarnell did you solve it?

@NunoAlexandre
I don't remember but I don't think so, I usually follow up open issues/questions with a found solution.

@stephanJ248
Copy link

stephanJ248 commented May 9, 2022

I'm also getting this issue in parity-kitty template when trying to add pallet-commodity in that.

@sacha-l
Copy link

sacha-l commented May 9, 2022

Hi @stephanJ248 - the pallet_commodity you referenced is very out-dated. It uses a version of Substrate that won't work with the latest node template out of the box (unless you downgrade all dependencies to some Substrate commit from circa early-mid 2020 I would guess).

If there are functionalities you are looking to integrate such as mint, burn or transfer, I recommend you either write your own pallet or use the existing pallet_uniques which is what is used in several production chains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants