mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 05:11:02 +00:00
Added Rococo BH <> Rococo Bulletin bridge (#2724)
* added Rococo BH <> Rococo Bulletin bridge * init-bridge support * allow customising finality-related runtime APIs * revert me * use Rococo/BridgeHubRococo pretending to be a Polkadot/BridgeHubPolkadot in Rococo <> RococoBulletin bridge * Revert "revert me" This reverts commit 90c598d9d50a25e7182c97eee7818bf8d4bc404c. * Revert "allow customising finality-related runtime APIs" This reverts commit b39c32c34acddfd0b919042122e0e667470bd0a4. * fmt * WITH_BRIDGE_ROCOCO_TO_BULLETIN_MESSAGES_PALLET_INDEX * regenerate bulletin chain runtime (pallet indices have changed) * fx WITH_BRIDGE_ROCOCO_TO_BULLETIN_MESSAGES_PALLET_INDEX constant because of latest changes * also change indices in runtime * fmt * clippy
This commit is contained in:
committed by
Bastian Köcher
parent
e711c9a5d5
commit
59882a7343
@@ -169,6 +169,24 @@ impl<C: Chain> UnsignedTransaction<C> {
|
||||
Self { call, nonce, era: TransactionEra::Immortal, tip: Zero::zero() }
|
||||
}
|
||||
|
||||
/// Convert to the transaction of the other compatible chain.
|
||||
pub fn switch_chain<Other>(self) -> UnsignedTransaction<Other>
|
||||
where
|
||||
Other: Chain<
|
||||
Nonce = C::Nonce,
|
||||
Balance = C::Balance,
|
||||
BlockNumber = C::BlockNumber,
|
||||
Hash = C::Hash,
|
||||
>,
|
||||
{
|
||||
UnsignedTransaction {
|
||||
call: EncodedOrDecodedCall::Encoded(self.call.into_encoded()),
|
||||
nonce: self.nonce,
|
||||
tip: self.tip,
|
||||
era: self.era,
|
||||
}
|
||||
}
|
||||
|
||||
/// Set transaction tip.
|
||||
#[must_use]
|
||||
pub fn tip(mut self, tip: C::Balance) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user