Skip to content
Snippets Groups Projects
Commit a668b3c7 authored by Moul's avatar Moul
Browse files

[fix] #37: examples: update documents to version 10.

parent f9ba0c90
Branches
Tags
No related merge requests found
...@@ -41,7 +41,7 @@ def get_identity_document(current_block, uid, salt, password): ...@@ -41,7 +41,7 @@ def get_identity_document(current_block, uid, salt, password):
# create identity document # create identity document
identity = Identity( identity = Identity(
version=2, version=10,
currency=current_block['currency'], currency=current_block['currency'],
pubkey=key.pubkey, pubkey=key.pubkey,
uid=uid, uid=uid,
...@@ -76,7 +76,7 @@ def get_membership_document(mtype, current_block, identity, salt, password): ...@@ -76,7 +76,7 @@ def get_membership_document(mtype, current_block, identity, salt, password):
# create identity document # create identity document
membership = Membership( membership = Membership(
version=2, version=10,
currency=current_block['currency'], currency=current_block['currency'],
issuer=key.pubkey, issuer=key.pubkey,
membership_ts=timestamp, membership_ts=timestamp,
......
...@@ -24,7 +24,7 @@ BMA_ENDPOINT = "BASIC_MERKLED_API g1.duniter.org 10901" ...@@ -24,7 +24,7 @@ BMA_ENDPOINT = "BASIC_MERKLED_API g1.duniter.org 10901"
AIOHTTP_SESSION = aiohttp.ClientSession() AIOHTTP_SESSION = aiohttp.ClientSession()
# Version of the transaction document # Version of the transaction document
TRANSACTION_VERSION = 3 TRANSACTION_VERSION = 10
def get_transaction_document(current_block, source, from_pubkey, to_pubkey): def get_transaction_document(current_block, source, from_pubkey, to_pubkey):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment