Skip to content

Commit

Permalink
Fix simulate serialization (#15822)
Browse files Browse the repository at this point in the history
  • Loading branch information
runtian-zhou authored Feb 3, 2025
1 parent b60cde7 commit ab9da6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aptos-move/aptos-release-builder/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ use move_core_types::{
identifier::{IdentStr, Identifier},
language_storage::{ModuleId, StructTag},
move_resource::MoveResource,
value::MoveValue,
};
use move_vm_runtime::module_traversal::{TraversalContext, TraversalStorage};
use move_vm_types::{gas::UnmeteredGasMeter, resolver::ModuleResolver};
Expand Down Expand Up @@ -479,7 +480,9 @@ fn force_end_epoch(state_view: &SimulationStateView<impl StateView>) -> Result<(
&MODULE_ID_APTOS_GOVERNANCE,
IdentStr::new("force_end_epoch").unwrap(),
vec![],
vec![bcs::to_bytes(&AccountAddress::ONE)?],
vec![MoveValue::Signer(AccountAddress::ONE)
.simple_serialize()
.unwrap()],
&mut UnmeteredGasMeter,
&mut TraversalContext::new(&traversal_storage),
&module_storage,
Expand Down

0 comments on commit ab9da6b

Please sign in to comment.