Commit 7712d18c authored by inso's avatar inso

Fix certify parameters

parent 8d65c5c1
......@@ -16,7 +16,7 @@
# Caner Candan <caner@candan.fr>, http://caner.candan.fr
#
PROTOCOL_VERSION="1"
PROTOCOL_VERSION="6"
MANAGED_API=["BASIC_MERKLED_API", "BMAS"]
......
......@@ -285,17 +285,17 @@ async def add(connection, identity):
r = await client.requests_post('/add', identity=identity)
return r
async def certify(connection, certification):
async def certify(connection, cert):
"""
POST certification document
:param duniterpy.api.bma.ConnectionHandler connection: Connection handler instance
:param duniterpy.documents.certification.Certification certification: Certification document
:param duniterpy.documents.certification.Certification cert: Certification document
:rtype: aiohttp.ClientResponse
"""
client = API(connection, URL_PATH)
r = await client.requests_post('/certify', cert=certification)
r = await client.requests_post('/certify', cert=cert)
return r
async def revoke(connection, revocation):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment