pub fn do_minimum_bytes() -> Vec<u8> {
    let module = builder::module()
        .function()
        // A signature with 0 params and no return type
        .signature()
        .build()
        .body()
        .with_instructions(Instructions::new(vec![Instruction::Nop, Instruction::End]))
        .build()
        .build()
        // Export above function
        .export()
        .field(DEFAULT_ENTRY_POINT_NAME)
        .build()
        // Memory section is mandatory
        .memory()
        .build()
        .build();
    parity_wasm::serialize(module).expect("should serialize")
}
/// Creates minimal session code that does only one "nop" opcode
Creates minimal session code that does only one "nop" opcode
Creates minimal session code that does only one " nop " opcode
pub fn do_minimum_bytes() -> Vec<u8> {
    let module = builder::module()
        .function()
        // A signature with 0 params and no return type
        .signature()
        .build()
        .body()
        .with_instructions(Instructions::new(vec![Instruction::Nop, Instruction::End]))
        .build()
        .build()
        // Export above function
        .export()
        .field(DEFAULT_ENTRY_POINT_NAME)
        .build()
        // Memory section is mandatory
        .memory()
        .build()
        .build();
    parity_wasm::serialize(module).expect("should serialize")
}
pub fn do_minimum_bytes ( ) -> Vec < u8 > { let module = builder :: module ( ) . function ( ) // A signature with 0 params and no return type . signature ( ) . build ( ) . body ( ) . with_instructions ( Instructions :: new ( vec ! [ Instruction Nop Instruction End ] ) ) . build ( ) . build ( ) // Export above function . export ( ) . field ( DEFAULT_ENTRY_POINT_NAME ) . build ( ) // Memory section is mandatory . memory ( ) . build ( ) . build ( ) ; parity_wasm :: serialize ( module ) . expect ( " " ) }
Creates minimal session code that does only one "nop" opcode
Creates minimal session code that does only one " nop " opcode