File tree 3 files changed +173
-138
lines changed
3 files changed +173
-138
lines changed Original file line number Diff line number Diff line change @@ -301,21 +301,24 @@ pub mod machine {
301
301
use std:: collections:: HashMap ;
302
302
303
303
pub fn machine_created (
304
+ kind : u8 ,
304
305
owner : Address ,
305
306
metadata : & HashMap < String , String > ,
306
307
) -> Result < IMachineFacadeEvents > {
307
308
let owner: H160 = owner. try_into ( ) ?;
308
309
let metadata = fvm_ipld_encoding:: to_vec ( metadata) ?;
309
310
Ok ( IMachineFacadeEvents :: MachineCreated ( MachineCreated {
311
+ kind,
310
312
owner : owner. into ( ) ,
311
313
metadata : metadata. into ( ) ,
312
314
} ) )
313
315
}
314
316
315
- pub fn machine_initialized ( machine_address : Address ) -> Result < IMachineFacadeEvents > {
317
+ pub fn machine_initialized ( kind : u8 , machine_address : Address ) -> Result < IMachineFacadeEvents > {
316
318
let machine_address: H160 = machine_address. try_into ( ) ?;
317
319
Ok ( IMachineFacadeEvents :: MachineInitialized (
318
320
MachineInitialized {
321
+ kind,
319
322
machineAddress : machine_address. into ( ) ,
320
323
} ,
321
324
) )
You can’t perform that action at this time.
0 commit comments