fix #4591: pay to OP_RETURN on trezor
This commit is contained in:
@@ -382,7 +382,7 @@ class KeepKeyPlugin(HW_PluginBase):
|
|||||||
txoutputtype.amount = amount
|
txoutputtype.amount = amount
|
||||||
if _type == TYPE_SCRIPT:
|
if _type == TYPE_SCRIPT:
|
||||||
txoutputtype.script_type = self.types.PAYTOOPRETURN
|
txoutputtype.script_type = self.types.PAYTOOPRETURN
|
||||||
txoutputtype.op_return_data = address[2:]
|
txoutputtype.op_return_data = bfh(address)[2:]
|
||||||
elif _type == TYPE_ADDRESS:
|
elif _type == TYPE_ADDRESS:
|
||||||
if is_segwit_address(address):
|
if is_segwit_address(address):
|
||||||
txoutputtype.script_type = self.types.PAYTOWITNESS
|
txoutputtype.script_type = self.types.PAYTOWITNESS
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ class SafeTPlugin(HW_PluginBase):
|
|||||||
txoutputtype.amount = amount
|
txoutputtype.amount = amount
|
||||||
if _type == TYPE_SCRIPT:
|
if _type == TYPE_SCRIPT:
|
||||||
txoutputtype.script_type = self.types.OutputScriptType.PAYTOOPRETURN
|
txoutputtype.script_type = self.types.OutputScriptType.PAYTOOPRETURN
|
||||||
txoutputtype.op_return_data = address[2:]
|
txoutputtype.op_return_data = bfh(address)[2:]
|
||||||
elif _type == TYPE_ADDRESS:
|
elif _type == TYPE_ADDRESS:
|
||||||
txoutputtype.script_type = self.types.OutputScriptType.PAYTOADDRESS
|
txoutputtype.script_type = self.types.OutputScriptType.PAYTOADDRESS
|
||||||
txoutputtype.address = address
|
txoutputtype.address = address
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ class TrezorPlugin(HW_PluginBase):
|
|||||||
txoutputtype.amount = amount
|
txoutputtype.amount = amount
|
||||||
if _type == TYPE_SCRIPT:
|
if _type == TYPE_SCRIPT:
|
||||||
txoutputtype.script_type = self.types.OutputScriptType.PAYTOOPRETURN
|
txoutputtype.script_type = self.types.OutputScriptType.PAYTOOPRETURN
|
||||||
txoutputtype.op_return_data = address[2:]
|
txoutputtype.op_return_data = bfh(address)[2:]
|
||||||
elif _type == TYPE_ADDRESS:
|
elif _type == TYPE_ADDRESS:
|
||||||
txoutputtype.script_type = self.types.OutputScriptType.PAYTOADDRESS
|
txoutputtype.script_type = self.types.OutputScriptType.PAYTOADDRESS
|
||||||
txoutputtype.address = address
|
txoutputtype.address = address
|
||||||
|
|||||||
Reference in New Issue
Block a user