@staticmethod
def calculate_create2_case_contract_address(deployer: ChecksumAddress, salt: HexStr, creation_code: HexStr) -> Optional[ChecksumAddress]
# 计算 CREATE2 部署的合约地址
contract_address = Utils.calculate_create2_case_contract_address(
deployer="0x...", # 工厂合约地址
salt="0x123...", # 盐值
creation_code="0x..." # 创建时字节码
)
if contract_address:
print(f"Contract will be deployed at: {contract_address}")