@staticmethod
def assembly_to_bytecode_legacy(assembly: str) -> Optional[HexBytes]
# 将汇编转换为字节码
assembly = """
PUSH1 0x80
PUSH1 0x40
MSTORE
CALLVALUE
DUP1
ISZERO
PUSH2 0x000f
JUMPI
"""
bytecode = Utils.assembly_to_bytecode_legacy(assembly)
if bytecode:
print(f"Bytecode: {bytecode.hex()}")