mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Add ‘transaction_version’ to the signed transaction (#1092)
This allows hardware wallets to know which transactions they can safely sign.
This commit is contained in:
@@ -595,7 +595,8 @@ impl<LocalCall> system::offchain::CreateSignedTransaction<LocalCall> for Runtime
|
|||||||
let tip = 0;
|
let tip = 0;
|
||||||
let extra: SignedExtra = (
|
let extra: SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion::<Runtime>::new(),
|
system::CheckSpecVersion::<Runtime>::new(),
|
||||||
|
system::CheckTxVersion::<Runtime>::new(),
|
||||||
system::CheckGenesis::<Runtime>::new(),
|
system::CheckGenesis::<Runtime>::new(),
|
||||||
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||||
system::CheckNonce::<Runtime>::from(nonce),
|
system::CheckNonce::<Runtime>::from(nonce),
|
||||||
@@ -845,7 +846,8 @@ pub type BlockId = generic::BlockId<Block>;
|
|||||||
/// The SignedExtension to the basic transaction logic.
|
/// The SignedExtension to the basic transaction logic.
|
||||||
pub type SignedExtra = (
|
pub type SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion<Runtime>,
|
system::CheckSpecVersion<Runtime>,
|
||||||
|
system::CheckTxVersion<Runtime>,
|
||||||
system::CheckGenesis<Runtime>,
|
system::CheckGenesis<Runtime>,
|
||||||
system::CheckEra<Runtime>,
|
system::CheckEra<Runtime>,
|
||||||
system::CheckNonce<Runtime>,
|
system::CheckNonce<Runtime>,
|
||||||
|
|||||||
@@ -602,7 +602,8 @@ impl<LocalCall> system::offchain::CreateSignedTransaction<LocalCall> for Runtime
|
|||||||
let tip = 0;
|
let tip = 0;
|
||||||
let extra: SignedExtra = (
|
let extra: SignedExtra = (
|
||||||
OnlyStakingAndClaims,
|
OnlyStakingAndClaims,
|
||||||
system::CheckVersion::<Runtime>::new(),
|
system::CheckSpecVersion::<Runtime>::new(),
|
||||||
|
system::CheckTxVersion::<Runtime>::new(),
|
||||||
system::CheckGenesis::<Runtime>::new(),
|
system::CheckGenesis::<Runtime>::new(),
|
||||||
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||||
system::CheckNonce::<Runtime>::from(nonce),
|
system::CheckNonce::<Runtime>::from(nonce),
|
||||||
@@ -760,7 +761,8 @@ pub type BlockId = generic::BlockId<Block>;
|
|||||||
pub type SignedExtra = (
|
pub type SignedExtra = (
|
||||||
// RELEASE: remove this for release build.
|
// RELEASE: remove this for release build.
|
||||||
OnlyStakingAndClaims,
|
OnlyStakingAndClaims,
|
||||||
system::CheckVersion<Runtime>,
|
system::CheckSpecVersion<Runtime>,
|
||||||
|
system::CheckTxVersion<Runtime>,
|
||||||
system::CheckGenesis<Runtime>,
|
system::CheckGenesis<Runtime>,
|
||||||
system::CheckEra<Runtime>,
|
system::CheckEra<Runtime>,
|
||||||
system::CheckNonce<Runtime>,
|
system::CheckNonce<Runtime>,
|
||||||
|
|||||||
@@ -394,7 +394,8 @@ impl<LocalCall> system::offchain::CreateSignedTransaction<LocalCall> for Runtime
|
|||||||
let tip = 0;
|
let tip = 0;
|
||||||
let extra: SignedExtra = (
|
let extra: SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion::<Runtime>::new(),
|
system::CheckSpecVersion::<Runtime>::new(),
|
||||||
|
system::CheckTxVersion::<Runtime>::new(),
|
||||||
system::CheckGenesis::<Runtime>::new(),
|
system::CheckGenesis::<Runtime>::new(),
|
||||||
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||||
system::CheckNonce::<Runtime>::from(nonce),
|
system::CheckNonce::<Runtime>::from(nonce),
|
||||||
@@ -531,7 +532,8 @@ pub type BlockId = generic::BlockId<Block>;
|
|||||||
/// The SignedExtension to the basic transaction logic.
|
/// The SignedExtension to the basic transaction logic.
|
||||||
pub type SignedExtra = (
|
pub type SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion<Runtime>,
|
system::CheckSpecVersion<Runtime>,
|
||||||
|
system::CheckTxVersion<Runtime>,
|
||||||
system::CheckGenesis<Runtime>,
|
system::CheckGenesis<Runtime>,
|
||||||
system::CheckEra<Runtime>,
|
system::CheckEra<Runtime>,
|
||||||
system::CheckNonce<Runtime>,
|
system::CheckNonce<Runtime>,
|
||||||
|
|||||||
@@ -454,7 +454,8 @@ impl<LocalCall> system::offchain::CreateSignedTransaction<LocalCall> for Runtime
|
|||||||
let tip = 0;
|
let tip = 0;
|
||||||
let extra: SignedExtra = (
|
let extra: SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion::<Runtime>::new(),
|
system::CheckSpecVersion::<Runtime>::new(),
|
||||||
|
system::CheckTxVersion::<Runtime>::new(),
|
||||||
system::CheckGenesis::<Runtime>::new(),
|
system::CheckGenesis::<Runtime>::new(),
|
||||||
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
system::CheckEra::<Runtime>::from(generic::Era::mortal(period, current_block)),
|
||||||
system::CheckNonce::<Runtime>::from(nonce),
|
system::CheckNonce::<Runtime>::from(nonce),
|
||||||
@@ -645,7 +646,8 @@ pub type BlockId = generic::BlockId<Block>;
|
|||||||
/// The SignedExtension to the basic transaction logic.
|
/// The SignedExtension to the basic transaction logic.
|
||||||
pub type SignedExtra = (
|
pub type SignedExtra = (
|
||||||
RestrictFunctionality,
|
RestrictFunctionality,
|
||||||
system::CheckVersion<Runtime>,
|
system::CheckSpecVersion<Runtime>,
|
||||||
|
system::CheckTxVersion<Runtime>,
|
||||||
system::CheckGenesis<Runtime>,
|
system::CheckGenesis<Runtime>,
|
||||||
system::CheckEra<Runtime>,
|
system::CheckEra<Runtime>,
|
||||||
system::CheckNonce<Runtime>,
|
system::CheckNonce<Runtime>,
|
||||||
|
|||||||
Reference in New Issue
Block a user