URI: 
       tfix export_private_key of Imported_Wallet - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 34a786ee433960fc3b33af3e82ca80656a540f21
   DIR parent 23bcda47b12fdf16c35c278a9422fc5c67ab2b1d
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu,  5 Oct 2017 09:44:37 +0200
       
       fix export_private_key of Imported_Wallet
       
       Diffstat:
         M lib/wallet.py                       |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -1455,7 +1455,9 @@ class Imported_Wallet(Abstract_Wallet):
                return addr
        
            def export_private_key(self, address, password):
       -        txin_type, pubkey, redeem_script = self.addresses[address]
       +        d = self.addresses[address]
       +        pubkey = d['pubkey']
       +        redeem_script = d['redeem_script']
                sec = pw_decode(self.keystore.keypairs[pubkey], password)
                return sec, redeem_script