From a668b3c73439a2618cbc05755bb7dc6a392ce1c9 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sat, 3 Feb 2018 16:31:41 +0100
Subject: [PATCH] [fix] #37: examples: update documents to version 10.

---
 examples/send_membership.py  | 4 ++--
 examples/send_transaction.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/examples/send_membership.py b/examples/send_membership.py
index dc75f30d..cdabad20 100644
--- a/examples/send_membership.py
+++ b/examples/send_membership.py
@@ -41,7 +41,7 @@ def get_identity_document(current_block, uid, salt, password):
 
     # create identity document
     identity = Identity(
-        version=2,
+        version=10,
         currency=current_block['currency'],
         pubkey=key.pubkey,
         uid=uid,
@@ -76,7 +76,7 @@ def get_membership_document(mtype, current_block, identity, salt, password):
 
     # create identity document
     membership = Membership(
-        version=2,
+        version=10,
         currency=current_block['currency'],
         issuer=key.pubkey,
         membership_ts=timestamp,
diff --git a/examples/send_transaction.py b/examples/send_transaction.py
index 18da6de6..1fa6d1f4 100644
--- a/examples/send_transaction.py
+++ b/examples/send_transaction.py
@@ -24,7 +24,7 @@ BMA_ENDPOINT = "BASIC_MERKLED_API g1.duniter.org 10901"
 AIOHTTP_SESSION = aiohttp.ClientSession()
 
 # Version of the transaction document
-TRANSACTION_VERSION = 3
+TRANSACTION_VERSION = 10
 
 
 def get_transaction_document(current_block, source, from_pubkey, to_pubkey):
-- 
GitLab