Skip to content

Commit 216abd5

Browse files
committed
no paying tx fee in alpha
1 parent 459fa72 commit 216abd5

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

pallets/transaction-fee/src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,12 @@ where
327327
) {
328328
Ok(imbalance) => Ok(Some(WithdrawnFee::Tao(imbalance))),
329329
Err(_) => {
330-
let alpha_vec = Self::fees_in_alpha::<T>(who, call);
331-
if !alpha_vec.is_empty() {
332-
let fee_u64: u64 = fee.into();
333-
OU::withdraw_in_alpha(who, &alpha_vec, fee_u64);
334-
return Ok(Some(WithdrawnFee::Alpha));
335-
}
330+
// let alpha_vec = Self::fees_in_alpha::<T>(who, call);
331+
// if !alpha_vec.is_empty() {
332+
// let fee_u64: u64 = fee.into();
333+
// OU::withdraw_in_alpha(who, &alpha_vec, fee_u64);
334+
// return Ok(Some(WithdrawnFee::Alpha));
335+
// }
336336
Err(InvalidTransaction::Payment.into())
337337
}
338338
}
@@ -353,14 +353,14 @@ where
353353
match F::can_withdraw(who, fee) {
354354
WithdrawConsequence::Success => Ok(()),
355355
_ => {
356-
// Fallback to fees in Alpha if possible
357-
let alpha_vec = Self::fees_in_alpha::<T>(who, call);
358-
if !alpha_vec.is_empty() {
359-
let fee_u64: u64 = fee.into();
360-
if OU::can_withdraw_in_alpha(who, &alpha_vec, fee_u64) {
361-
return Ok(());
362-
}
363-
}
356+
// // Fallback to fees in Alpha if possible
357+
// let alpha_vec = Self::fees_in_alpha::<T>(who, call);
358+
// if !alpha_vec.is_empty() {
359+
// let fee_u64: u64 = fee.into();
360+
// if OU::can_withdraw_in_alpha(who, &alpha_vec, fee_u64) {
361+
// return Ok(());
362+
// }
363+
// }
364364
Err(InvalidTransaction::Payment.into())
365365
}
366366
}

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
220220
// `spec_version`, and `authoring_version` are the same between Wasm and native.
221221
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
222222
// the compatible custom types.
223-
spec_version: 348,
223+
spec_version: 349,
224224
impl_version: 1,
225225
apis: RUNTIME_API_VERSIONS,
226226
transaction_version: 1,

0 commit comments

Comments
 (0)