From ab30988614434721a5b044f2c86d1ca93a7345e5 Mon Sep 17 00:00:00 2001 From: Upstream Data Date: Tue, 10 Dec 2024 11:08:03 -0700 Subject: [PATCH] bug: fix incorrect scrypt unit base type --- pyasic/device/algorithm/hashrate/unit/scrypt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyasic/device/algorithm/hashrate/unit/scrypt.py b/pyasic/device/algorithm/hashrate/unit/scrypt.py index 8766171a..e43a58de 100644 --- a/pyasic/device/algorithm/hashrate/unit/scrypt.py +++ b/pyasic/device/algorithm/hashrate/unit/scrypt.py @@ -1,9 +1,9 @@ from __future__ import annotations -from enum import IntEnum +from .base import AlgoHashRateUnitType -class ScryptUnit(IntEnum): +class ScryptUnit(AlgoHashRateUnitType): H = 1 KH = int(H) * 1000 MH = int(KH) * 1000