Skip to content

Commit

Permalink
fixup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo committed Dec 1, 2022
1 parent da04459 commit 89b9fd9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
16 changes: 4 additions & 12 deletions crates/sui-core/src/authority/authority_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use arc_swap::ArcSwap;
use move_binary_format::CompiledModule;
use move_bytecode_utils::module_cache::GetModule;
use once_cell::sync::OnceCell;
use parking_lot::RwLock;
use rocksdb::Options;
use serde::{Deserialize, Serialize};
use serde_with::serde_as;
Expand Down Expand Up @@ -1276,17 +1277,8 @@ impl<S: Eq + Debug + Serialize + for<'de> Deserialize<'de>> SuiDataStore<S> {
let modified_object_keys = effects
.modified_at_versions
.iter()
.map(|(r, _)| r)
.chain(effects.deleted.iter())
.chain(effects.wrapped.iter())
.map(|(id, version, _)| {
ObjectKey(
*id,
version
.decrement()
.expect("version revert should never fail"),
)
});
.map(|(id, version)| ObjectKey(*id, *version));

let (old_objects_and_locks, old_dynamic_fields): (Vec<_>, Vec<_>) = self
.perpetual_tables
.objects
Expand All @@ -1310,7 +1302,7 @@ impl<S: Eq + Debug + Serialize + for<'de> Deserialize<'de>> SuiDataStore<S> {
})
.unzip();

let (old_objects, old_locks): (Vec<_>, Vec<_>) =
let (old_modified_objects, old_locks): (Vec<_>, Vec<_>) =
old_objects_and_locks.into_iter().flatten().unzip();
let old_dynamic_fields = old_dynamic_fields
.into_iter()
Expand Down
1 change: 1 addition & 0 deletions crates/sui-core/src/unit_tests/move_integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use sui_types::{

use std::path::PathBuf;
use std::{env, str::FromStr};
use sui_types::object::Owner;

const MAX_GAS: u64 = 10000;

Expand Down
8 changes: 4 additions & 4 deletions crates/sui-json-rpc/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use jsonrpsee_proc_macros::rpc;
use fastcrypto::encoding::Base64;
use sui_json::SuiJsonValue;
use sui_json_rpc_types::{
EventPage, GetObjectDataResponse, GetPastObjectDataResponse, GetRawObjectDataResponse,
MoveFunctionArgType, RPCTransactionRequestParams, SuiCoinMetadata, SuiEventEnvelope,
SuiEventFilter, SuiExecuteTransactionResponse, SuiGasCostSummary, SuiMoveNormalizedFunction,
SuiMoveNormalizedModule, SuiMoveNormalizedStruct, SuiObjectInfo,
DynamicFieldPage, EventPage, GetObjectDataResponse, GetPastObjectDataResponse,
GetRawObjectDataResponse, MoveFunctionArgType, RPCTransactionRequestParams, SuiCoinMetadata,
SuiEventEnvelope, SuiEventFilter, SuiExecuteTransactionResponse, SuiGasCostSummary,
SuiMoveNormalizedFunction, SuiMoveNormalizedModule, SuiMoveNormalizedStruct, SuiObjectInfo,
SuiTransactionAuthSignersResponse, SuiTransactionEffects, SuiTransactionFilter,
SuiTransactionResponse, SuiTypeTag, TransactionBytes, TransactionsPage,
};
Expand Down

0 comments on commit 89b9fd9

Please sign in to comment.