olas-operate-middleware 0.10.0__py3-none-any.whl → 0.10.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: olas-operate-middleware
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary:
5
5
  Author: David Vilela
6
6
  Author-email: dvilelaf@gmail.com
@@ -5,7 +5,7 @@ operate/bridge/bridge_manager.py,sha256=sUfhB1pZvBrF-kBfDOfFVoNeesCe7wd4_YahUF3F
5
5
  operate/bridge/providers/lifi_provider.py,sha256=FpAlBAA_gOt-oOHKhGaOQhhTZIL-hgYYo4IIw1FN7mo,14153
6
6
  operate/bridge/providers/native_bridge_provider.py,sha256=gG8bSyxUoAVEF6_J9tn1qKRv1PnXuMJdMwUAVJ4GJz8,24647
7
7
  operate/bridge/providers/provider.py,sha256=i54RL7m4wMSADM_D_V_quQump_ipPTmByUc-c-AOLPQ,19687
8
- operate/bridge/providers/relay_provider.py,sha256=qfFiD655qZ9MK7duwOTRYCVTv1mD8u-XbqmcJMlm_ls,16748
8
+ operate/bridge/providers/relay_provider.py,sha256=U_l7qP8jCbGYvPaoUf82MAS8V8OoizqSLTuJs763JGY,17075
9
9
  operate/cli.py,sha256=EalpBA15TXX5i3tD-2KIQOxkFwEOqOEiGMbjh36cOHw,51168
10
10
  operate/constants.py,sha256=syGWEVyw07zK50gPS4OSSwyAbt9R6P8IttDimDt9vCY,2746
11
11
  operate/data/README.md,sha256=jGPyZTvg2LCGdllvmYxmFMkkkiXb6YWatbqIkcX3kv4,879
@@ -86,8 +86,8 @@ operate/utils/gnosis.py,sha256=CS07ZqvrO7uelkFe09VMyPBcLzKONUI1ZqFvi41BDhc,17924
86
86
  operate/utils/ssl.py,sha256=O5DrDoZD4T4qQuHP8GLwWUVxQ-1qXeefGp6uDJiF2lM,4308
87
87
  operate/wallet/__init__.py,sha256=NGiozD3XhvkBi7_FaOWQ8x1thZPK4uGpokJaeDY_o2w,813
88
88
  operate/wallet/master.py,sha256=MGXynIV0LQU3n28AceK7RlaxAtfsVowsXzisesG4iJM,30760
89
- olas_operate_middleware-0.10.0.dist-info/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
90
- olas_operate_middleware-0.10.0.dist-info/METADATA,sha256=eIO5TslMIXDpTPEgB4cux27ty1LZsfgvL2-c-In_T14,2034
91
- olas_operate_middleware-0.10.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
92
- olas_operate_middleware-0.10.0.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
93
- olas_operate_middleware-0.10.0.dist-info/RECORD,,
89
+ olas_operate_middleware-0.10.1.dist-info/LICENSE,sha256=mdBDB-mWKV5Cz4ejBzBiKqan6Z8zVLAh9xwM64O2FW4,11339
90
+ olas_operate_middleware-0.10.1.dist-info/METADATA,sha256=-wfA1j-OSW-M2y-jxSEYO0lEHq8czpmQB2wcgF6pnc4,2034
91
+ olas_operate_middleware-0.10.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
92
+ olas_operate_middleware-0.10.1.dist-info/entry_points.txt,sha256=dM1g2I7ODApKQFcgl5J4NGA7pfBTo6qsUTXM-j2OLlw,44
93
+ olas_operate_middleware-0.10.1.dist-info/RECORD,,
@@ -396,7 +396,15 @@ class RelayProvider(Provider):
396
396
  )
397
397
  from_ledger_api = self._from_ledger_api(provider_request)
398
398
  to_ledger_api = self._to_ledger_api(provider_request)
399
- to_tx_hash = response_json["requests"][0]["data"]["outTxs"][0]["hash"]
399
+
400
+ if (
401
+ response_json["requests"][0]["data"]["outTxs"][0]["chainId"]
402
+ == response_json["requests"][0]["data"]["inTxs"][0]["chainId"]
403
+ ):
404
+ to_tx_hash = from_tx_hash # Should match response_json["requests"][0]["data"]["inTxs"][0]["hash"]
405
+ else:
406
+ to_tx_hash = response_json["requests"][0]["data"]["outTxs"][0]["hash"]
407
+
400
408
  execution_data.message = response_json.get("details", None)
401
409
  execution_data.to_tx_hash = to_tx_hash
402
410
  execution_data.elapsed_time = Provider._tx_timestamp(