Minor style changes
This commit is contained in:
@@ -308,9 +308,9 @@ class KeepKeyPlugin(HW_PluginBase):
|
||||
return self.types.SPENDWITNESS
|
||||
if electrum_txin_type in ('p2wpkh-p2sh', 'p2wsh-p2sh'):
|
||||
return self.types.SPENDP2SHWITNESS
|
||||
if electrum_txin_type in ('p2pkh', ):
|
||||
if electrum_txin_type in ('p2pkh',):
|
||||
return self.types.SPENDADDRESS
|
||||
if electrum_txin_type in ('p2sh', ):
|
||||
if electrum_txin_type in ('p2sh',):
|
||||
return self.types.SPENDMULTISIG
|
||||
raise ValueError('unexpected txin type: {}'.format(electrum_txin_type))
|
||||
|
||||
@@ -319,9 +319,9 @@ class KeepKeyPlugin(HW_PluginBase):
|
||||
return self.types.PAYTOWITNESS
|
||||
if electrum_txin_type in ('p2wpkh-p2sh', 'p2wsh-p2sh'):
|
||||
return self.types.PAYTOP2SHWITNESS
|
||||
if electrum_txin_type in ('p2pkh', ):
|
||||
if electrum_txin_type in ('p2pkh',):
|
||||
return self.types.PAYTOADDRESS
|
||||
if electrum_txin_type in ('p2sh', ):
|
||||
if electrum_txin_type in ('p2sh',):
|
||||
return self.types.PAYTOMULTISIG
|
||||
raise ValueError('unexpected txin type: {}'.format(electrum_txin_type))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user