py-near 1.1.25__py3-none-any.whl → 1.1.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
py_near/providers.py CHANGED
@@ -84,7 +84,7 @@ class JsonProvider(object):
84
84
  async with aiohttp.ClientSession() as session:
85
85
  async with session.post(rpc_addr, json=data) as r:
86
86
  if r.status == 200:
87
- data = json.loads(await r.text())
87
+ data = json.loads(await r.text())['result']
88
88
  if data["sync_info"]["syncing"]:
89
89
  last_block_ts = datetime.datetime.fromisoformat(
90
90
  data["sync_info"]["latest_block_time"]
@@ -221,7 +221,7 @@ class JsonProvider(object):
221
221
  async with aiohttp.ClientSession() as session:
222
222
  async with session.post(rpc_addr, json=data) as r:
223
223
  if r.status == 200:
224
- return json.loads(await r.text())
224
+ return json.loads(await r.text())['result']
225
225
  except (
226
226
  ClientResponseError,
227
227
  ClientConnectorError,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: py-near
3
- Version: 1.1.25
3
+ Version: 1.1.27
4
4
  Summary: Pretty simple and fully asynchronous framework for working with NEAR blockchain
5
5
  Author: pvolnov
6
6
  Author-email: petr@herewallet.app
@@ -20,10 +20,10 @@ py_near/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
20
20
  py_near/exceptions/exceptions.py,sha256=DEFipaAHm0y7oCuN2QKzHsiQvUTUQVl-Ce36Ag7n7hs,5509
21
21
  py_near/exceptions/provider.py,sha256=K-wexgjPJ8sw42JePwaP7R5dJEIn9DoFJRvVcURsx6s,7718
22
22
  py_near/models.py,sha256=GZQD1TKGWlwqsJsKRXrVNBjCdAIpk7GQypU-QOtAPFs,11533
23
- py_near/providers.py,sha256=9i9laUNtQFGfiTGglXB95rp1g8Ph49d0dXKHxYnJHOo,12529
23
+ py_near/providers.py,sha256=a6u-JMmHnYAYKzHd1kde2DFG5afHRj6CUeo6x25isYk,12549
24
24
  py_near/transactions.py,sha256=QAXegv2JpKISk92NaChtIH6-QPHrcWbrwdKH_lH4TsU,3186
25
25
  py_near/utils.py,sha256=FirRH93ydH1cwjn0-sNrZeIn3BRD6QHedrP2VkAdJ6g,126
26
- py_near-1.1.25.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
27
- py_near-1.1.25.dist-info/METADATA,sha256=d1SofefxxzkkBmOEPhvgGghb51slREAebC8DwT4d1FY,4713
28
- py_near-1.1.25.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
29
- py_near-1.1.25.dist-info/RECORD,,
26
+ py_near-1.1.27.dist-info/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
27
+ py_near-1.1.27.dist-info/METADATA,sha256=pMrnajiIp0NbwiNkoYyHUfAd7LKs0kimD1Ft4DVGDP4,4713
28
+ py_near-1.1.27.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
29
+ py_near-1.1.27.dist-info/RECORD,,