From e5ee31e7ff18cffcdfb643900581da054b46ee93 Mon Sep 17 00:00:00 2001
From: Patricio Kumagae <pkumagae@boletinoficial.gob.ar>
Date: Thu, 19 Sep 2019 12:11:23 -0300
Subject: [PATCH] Checksum Address

---
 dapp/gateway.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dapp/gateway.py b/dapp/gateway.py
index 55e9902..182b12f 100644
--- a/dapp/gateway.py
+++ b/dapp/gateway.py
@@ -66,7 +66,7 @@ class Distillery:
     def execute_transaction(self, contract, transaction_data, exception_message=""):
         es_valido = contract.call(transaction_data)
 
-        self.gateway.w3.personal.unlockAccount(settings.DISTRIBUTOR_ACCOUNT, settings.DISTRIBUTOR_PASSPHRASE, settings.UNLOCK_TIMEOUT)
+        self.gateway.w3.personal.unlockAccount(self.gateway.w3.toChecksumAddress(settings.DISTRIBUTOR_ACCOUNT), settings.DISTRIBUTOR_PASSPHRASE, settings.UNLOCK_TIMEOUT)
 
         if es_valido:
             # transaction_data['gasLimit'] = 1000000000000
-- 
GitLab