From af557d9909f6db545aa08ea51285138febd6910b Mon Sep 17 00:00:00 2001 From: ManEelyMan <54215211+ManEelyMan@users.noreply.github.com> Date: Mon, 31 Oct 2022 10:53:44 -0700 Subject: [PATCH] Update tx.py Fixed an error that breaks the TxFetcher. :) --- code-ch08/tx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code-ch08/tx.py b/code-ch08/tx.py index 500bea16..26d76b17 100644 --- a/code-ch08/tx.py +++ b/code-ch08/tx.py @@ -29,7 +29,7 @@ def get_url(cls, testnet=False): @classmethod def fetch(cls, tx_id, testnet=False, fresh=False): if fresh or (tx_id not in cls.cache): - url = '{}/tx/{}.hex'.format(cls.get_url(testnet), tx_id) + url = '{}/tx/{}/hex'.format(cls.get_url(testnet), tx_id) response = requests.get(url) try: raw = bytes.fromhex(response.text.strip())