Skip to content

Commit acb753e

Browse files
authored
Merge pull request oasisprotocol#2392 from oasisprotocol/peternose/bugfix/nonce-update
runtime-sdk: Fix nonce update during transaction check
2 parents a7549fa + a91a139 commit acb753e

File tree

2 files changed

+4
-4
lines changed
  • examples/runtime-sdk/rofl-oracle-tdx-raw
  • runtime-sdk/src/modules/accounts

2 files changed

+4
-4
lines changed

examples/runtime-sdk/rofl-oracle-tdx-raw/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ module-evm = { path = "../../../runtime-sdk/modules/evm", package = "oasis-runti
1212
# Third-party dependencies.
1313
anyhow = "1.0"
1414
async-trait = "0.1.77"
15+
nix = { version = "0.29.0", features = [
16+
"ioctl",
17+
] } # Remove once Oasis Core is upgraded beyond v25.7.
1518
solabi = "0.3.0"
1619
tokio = { version = "1.38", features = ["full"] }
1720
reqwest = { version = "0.12", features = ["json"] }

runtime-sdk/src/modules/accounts/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ impl module::TransactionHandler for Module {
10101010
}
10111011

10121012
fn after_dispatch_tx<C: Context>(
1013-
ctx: &C,
1013+
_ctx: &C,
10141014
tx_auth_info: &AuthInfo,
10151015
result: &module::CallResult,
10161016
) {
@@ -1035,9 +1035,6 @@ impl module::TransactionHandler for Module {
10351035

10361036
// Update payer balance.
10371037
Self::sub_amount(fee_updates.payer, &tx_auth_info.fee.amount).unwrap(); // Already checked.
1038-
1039-
// Update nonces.
1040-
Self::update_signer_nonces(ctx, tx_auth_info).unwrap();
10411038
}
10421039
}
10431040

0 commit comments

Comments
 (0)