Skip to content

Commit ea1ffe0

Browse files
committed
fork
1 parent e059d7c commit ea1ffe0

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

etherscan/utils/parsing.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,4 @@ class ResponseParser:
55
@staticmethod
66
def parse(response: requests.Response):
77
content = response.json()
8-
result = content["result"]
9-
if "status" in content.keys():
10-
status = bool(int(content["status"]))
11-
message = content["message"]
12-
assert status, f"{result} -- {message}"
13-
else:
14-
# GETH or Parity proxy msg format
15-
# TODO: see if we need those values
16-
jsonrpc = content["jsonrpc"]
17-
cid = int(content["id"])
18-
return result
8+
return content

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from setuptools import setup
22

33
setup(
4-
name="etherscan-python",
4+
name="x-etherscan-python",
55
version="2.1.0",
66
description="A minimal, yet complete, python API for etherscan.io.",
7-
url="https://github.com/pcko1/etherscan-python",
7+
url="https://github.com/sunjiahui/x-etherscan-python",
88
author="Panagiotis-Christos Kotsias",
99
author_email="kotsias.pan@gmail.com",
1010
license="MIT",

0 commit comments

Comments
 (0)