@@ -14,7 +14,8 @@ use fendermint_vm_actor_interface::diamond::{EthContract, EthContractMap};
1414use fendermint_vm_actor_interface:: eam:: EthAddress ;
1515use fendermint_vm_actor_interface:: ipc:: IPC_CONTRACTS ;
1616use fendermint_vm_actor_interface:: {
17- account, burntfunds, chainmetadata, cron, eam, init, ipc, reward, system, EMPTY_ARR ,
17+ account, burntfunds, chainmetadata, cron, eam, init, ipc, objectstore, reward, system,
18+ EMPTY_ARR ,
1819} ;
1920use fendermint_vm_core:: { chainid, Timestamp } ;
2021use fendermint_vm_genesis:: { ActorMeta , Genesis , Power , PowerScale , Validator } ;
@@ -247,6 +248,18 @@ where
247248 )
248249 . context ( "failed to create chainmetadata actor" ) ?;
249250
251+ // Initialize the object store actor.
252+ let objectstore_state = fendermint_actor_objectstore:: State :: new ( & state. store ( ) ) ?;
253+ state
254+ . create_custom_actor (
255+ fendermint_actor_objectstore:: OBJECTSTORE_ACTOR_NAME ,
256+ objectstore:: OBJECTSTORE_ACTOR_ID ,
257+ & objectstore_state,
258+ TokenAmount :: zero ( ) ,
259+ None ,
260+ )
261+ . context ( "failed to create objectstore actor" ) ?;
262+
250263 // STAGE 2: Create non-builtin accounts which do not have a fixed ID.
251264
252265 // The next ID is going to be _after_ the accounts, which have already been assigned an ID by the `Init` actor.
0 commit comments