Fix object encode

This commit is contained in:
liyaxing
2023-09-15 14:01:26 +08:00
parent 6ea83729a5
commit b59af5d4a7
5 changed files with 38 additions and 13 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
# define a object type enum
from abc import ABC, abstractmethod
from enum import Enum
from enum import IntEnum
from .hash import HashValue
import base58
import base36
class ObjectType(Enum):
class ObjectType(IntEnum):
Chunk = 7
Image = 101
Video = 102