We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acb753e + 64ec291 commit d66cd0fCopy full SHA for d66cd0f
runtime-sdk/src/modules/accounts/mod.rs
@@ -962,9 +962,8 @@ impl module::TransactionHandler for Module {
962
<C::Runtime as Runtime>::Core::set_priority(gas_price.try_into().unwrap_or(u64::MAX));
963
}
964
965
- // Do not update nonces early during transaction checks. In case of checks, only do it after
966
- // all the other checks have already passed as otherwise retrying the transaction will not
967
- // be possible.
+ // Do not update nonces during transaction checks. This allows validating multiple
+ // transactions in a batch without ordering them by nonce.
968
if !CurrentState::with_env(|env| env.is_check_only()) {
969
Self::update_signer_nonces(ctx, &tx.auth_info)?;
970
0 commit comments