Skip to content
Snippets Groups Projects
Commit 059692bb authored by inso's avatar inso
Browse files

0.12.2

Fix bug when written field is null
parent e2ea8802
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,17 @@ class Test_BMA_Wot(WebFunctionalSetupMixin, unittest.TestCase): ...@@ -130,6 +130,17 @@ class Test_BMA_Wot(WebFunctionalSetupMixin, unittest.TestCase):
}, },
"isMember": True, "isMember": True,
"signature": "42yQm4hGTJYWkPg39hQAUgP6S6EQ4vTfXdJuxKEHL1ih6YHiDL2hcwrFgBHjXLRgxRhj2VNVqqc6b4JayKqTE14r" "signature": "42yQm4hGTJYWkPg39hQAUgP6S6EQ4vTfXdJuxKEHL1ih6YHiDL2hcwrFgBHjXLRgxRhj2VNVqqc6b4JayKqTE14r"
},
{
"pubkey": "9WYHTavL1pmhunFCzUwiiq4pXwvgGG5ysjZnjz9H8yB",
"uid": "certifier uid",
"cert_time": {
"block": 88,
"medianTime": 1509991044
},
"written": None,
"isMember": True,
"signature": "42yQm4hGTJYWkPg39hQAUgP6S6EQ4vTfXdJuxKEHL1ih6YHiDL2hcwrFgBHjXLRgxRhj2VNVqqc6b4JayKqTE14r"
} }
] ]
} }
......
...@@ -21,7 +21,7 @@ PROTOCOL_VERSION="1" ...@@ -21,7 +21,7 @@ PROTOCOL_VERSION="1"
MANAGED_API=["BASIC_MERKLED_API"] MANAGED_API=["BASIC_MERKLED_API"]
__author__ = 'Caner Candan & inso' __author__ = 'Caner Candan & inso'
__version__ = '0.12.1' __version__ = '0.12.2'
__nonsense__ = 'uCoin' __nonsense__ = 'uCoin'
from . import api, documents, key from . import api, documents, key
\ No newline at end of file
...@@ -190,6 +190,8 @@ class CertifiersOf(WOT): ...@@ -190,6 +190,8 @@ class CertifiersOf(WOT):
"required": ["block", "medianTime"] "required": ["block", "medianTime"]
}, },
"written": { "written": {
"oneOf": [
{
"type": "object", "type": "object",
"properties": { "properties": {
"number": { "number": {
...@@ -201,6 +203,11 @@ class CertifiersOf(WOT): ...@@ -201,6 +203,11 @@ class CertifiersOf(WOT):
}, },
"required": ["number", "hash"] "required": ["number", "hash"]
}, },
{
"type": "null"
}
]
},
"isMember": { "isMember": {
"type": "boolean" "type": "boolean"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment