shaunxw / xcm-simulator

Test kit to simulate cross-chain message passing and XCM execution
Apache License 2.0
43 stars 45 forks source link

Question: Using a local version of Polkadot with `xcm-emulator` #53

Closed darkforest0202 closed 1 year ago

darkforest0202 commented 1 year ago

Hello!!!

i would like to use a local version of Polkadot so i can log custom debug messages in the executor and builder. I tried redirecting all the polkadot pallets to my local repository but when i compile tons of errors and unmet trait bounds appear specially with the xcm-emulator. Is this possible?

shaunxw commented 1 year ago

Yes, it is possible. The compile error is probably because your local repo doesn't have the same version of upstream Substrate dependencies with the xcm-emulator you used.

darkforest0202 commented 1 year ago

Yes, it is possible. The compile error is probably because your local repo doesn't have the same version of upstream Substrate dependencies with the xcm-emulator you used.

Thanks for @shaunxw ! actually i'm using release-v0.9.42 and polkadot-v0.9.42 for all the imports, should i specify the commits as well using rev?

shaunxw commented 1 year ago

It should work with the same polkadot release branch. I would suggest to double check your cargo lock file to see if there are multiple substrate versions used.