twallet: fix #5748 - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit fef1ddd4162df482f5652c760f955d5c973381ab
 (DIR) parent 7b18c91b74bbebfe56ba547080ab29775e42feb2
 (HTM) Author: SomberNight <somber.night@protonmail.com>
       Date:   Fri,  8 Nov 2019 13:43:12 +0100
       
       wallet: fix #5748
       
       Diffstat:
         M electrum/wallet.py                  |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/electrum/wallet.py b/electrum/wallet.py
       t@@ -422,6 +422,8 @@ class Abstract_Wallet(AddressSynchronizer):
                if txin_type == 'p2wpkh-p2sh':
                    pubkey = self.get_public_key(address)
                    return bitcoin.p2wpkh_nested_script(pubkey)
       +        if txin_type == 'address':
       +            return None
                raise UnknownTxinType(f'unexpected txin_type {txin_type}')
        
            def get_witness_script(self, address: str) -> Optional[str]: