-
Notifications
You must be signed in to change notification settings - Fork 245
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
Linker error between subxt and sp dependencies #1051
Comments
You have two different versions of |
@niklasad1, these are the Subxt dependencies I found for Substrate:
Only for |
subxt is published on crates.io and don't follow the polkadot releases and it may work for several polkadot versions etc depending whether a certain pallet had breaking changes or not. For further info take a look at this issue The easiest to workaround around this "mess" is to disable the Long-term we really depend on that polkadot/substrate crates are going to be published on crates.io on a regular schedule which is being worked on but not sure when it's going to happen..... |
hey @niklasad1, I went ahead with the second option but When trying to call impl Config for InterBtcRuntime {
type Index = <SubstrateConfig as Config>::Index; // through subxt
type Hash = <SubstrateConfig as Config>::Hash;// through subxt
type AccountId = AccountId; // Type defined natively
type Address = MultiAddress<Self::AccountId, ()>;
type Signature = MultiSignature; // Type defined natively
type Hasher = <SubstrateConfig as Config>::Hasher;// through subxt
type Header = <SubstrateConfig as Config>::Header;// through subxt
type ExtrinsicParams = PolkadotExtrinsicParams<Self>;// through subxt
}
// Pair signer defined natively
#[derive(Clone, Debug)]
pub struct PairSigner<T: Config, Pair> {
account_id: T::AccountId,
pub signer: Pair,
} Error:
Code that passes out the error let tx_progress = self
.api
.tx()
.create_signed_with_nonce(&call, &self.signer, nonce, Default::default())?
.submit_and_watch()
.await.unwrap(); If all the custom types are defined correctly, is there any reason for the failure, or have I missed something? |
Hmm, the node regard the transaction as invalid and it's quite tricky to debug. You are sure the I guess the easiest way forward would be to create an extrinsic with the old code and the new code and compare the hash? |
@nakul1010 have you resolved this, now that your subxt upgrade is merged? I'd love to know what the issue was if so :) |
@jsdw |
Ah interesting; I haven't come across that particular config before; I guess no other types of address are needed so it was just collapsed to AccountId :) Thanks for letting me know; always good to learn about these sorts of things for the future! |
After updating the subxt dependency to the latest version in the repository, and also updating the sp dependencies based on the subxt repo, a linker error issue is emitted.
Code hyperlink
Command to run:
cargo b -p runtime --features parachain-metadata-kintsugi-testnet
Error Message
The complete error message can be found in the CI logs here
The text was updated successfully, but these errors were encountered: