skyfffire 5 mēneši atpakaļ
vecāks
revīzija
6ab7b22bd6
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      erc20_to_mexc.py

+ 2 - 1
erc20_to_mexc.py

@@ -229,7 +229,8 @@ class ArbitrageProcess:
             gas_price_gwei = gas_price / Decimal('1e9')
             gas_price_gwei = gas_price_gwei.quantize(Decimal('1e-9'), rounding=ROUND_DOWN)
 
-            logger.info("鏈上各種校驗")
+            tx_formated = pformat(self.tx, indent=2)
+            logger.info(f"鏈上各種校驗\n{tx_formated}")
             estimated_gas_origin = web3.w3.eth.estimate_gas(self.tx)
             estimated_gas = int(estimated_gas_origin * self.gas_limit_multiplier)
             estimated_wei = Decimal(estimated_gas) * gas_price