pub fn empty_script() -> CompiledScriptMut {
    CompiledScriptMut {
        module_handles: vec![],
        struct_handles: vec![],
        function_handles: vec![],

        function_instantiations: vec![],

        signatures: vec![Signature(vec![])],

        identifiers: vec![],
        address_identifiers: vec![],
        constant_pool: vec![],

        type_parameters: vec![],
        parameters: SignatureIndex(0),
        code: CodeUnit {
            locals: SignatureIndex(0),
            code: vec![Bytecode::Ret],
        },
    }
}
/// Return a simple script that contains only a return in the main()
Return a simple script that contains only a return in the main()
Return a simple script that contains only a return in the main ()
pub fn empty_script() -> CompiledScriptMut {
    CompiledScriptMut {
        module_handles: vec![],
        struct_handles: vec![],
        function_handles: vec![],
        function_instantiations: vec![],
        signatures: vec![Signature(vec![])],
        identifiers: vec![],
        address_identifiers: vec![],
        constant_pool: vec![],
        type_parameters: vec![],
        parameters: SignatureIndex(0),
        code: CodeUnit {
            locals: SignatureIndex(0),
            code: vec![Bytecode::Ret],
        },
    }
}
pub fn empty_script ( ) -> CompiledScriptMut { CompiledScriptMut { module_handles : vec ! [ ] , struct_handles : vec ! [ ] , function_handles : vec ! [ ] , function_instantiations : vec ! [ ] , signatures : vec ! [ Signature ( vec [ ] ) ] , identifiers : vec ! [ ] , address_identifiers : vec ! [ ] , constant_pool : vec ! [ ] , type_parameters : vec ! [ ] , parameters : SignatureIndex ( 0 ) , code : CodeUnit { locals : SignatureIndex ( 0 ) , code : vec ! [ Bytecode Ret ] , } , } }
Return a simple script that contains only a return in the main()
Return a simple script that contains only a return in the main ()