def compile(source, ezo):
        '''
        compiles the source code

        :param source: (string) - contract source code
        :param ezo: - ezo reference for Contract object creation
        :return: (list) compiled source
        '''
        try:
            compiled = compile_source(source)
            compiled_list = []
            for name in compiled:
                c = Contract(name, ezo)
                interface = compiled[name]
                c.abi = interface['abi']
                c.bin = interface['bin']
                compiled_list.append(c)

        except Exception as e:
            return None, e
        return compiled_list, None
def compile ( source , ezo ) : try : compiled = compile_source ( source ) compiled_list = [ ] for name in compiled : c = Contract ( name , ezo ) interface = compiled [ name ] c . abi = interface [ 'abi' ] c . bin = interface [ 'bin' ] compiled_list . append ( c ) except Exception as e : return None , e return compiled_list , None
compiles the source code

        :param source: (string) - contract source code
        :param ezo: - ezo reference for Contract object creation
        :return: (list) compiled source