1
0

bip70 PRs: use aiohttp instead of requests. use proxy. small fixes.

This commit is contained in:
SomberNight
2018-11-05 19:31:17 +01:00
parent 1b46866e34
commit 1686a97ece
5 changed files with 62 additions and 50 deletions

View File

@@ -788,7 +788,8 @@ class Transaction:
return self
@classmethod
def pay_script(self, output_type, addr):
def pay_script(self, output_type, addr: str) -> str:
"""Returns scriptPubKey in hex form."""
if output_type == TYPE_SCRIPT:
return addr
elif output_type == TYPE_ADDRESS: