mezoAgent 0.2.3__tar.gz → 0.2.4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A LangChain based tool kit for AI Agents to send BTC and mUSD transactions on Mezo Matsnet.
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Python: >=3.7
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mezoAgent
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: A LangChain based tool kit for AI Agents to send BTC and mUSD transactions on Mezo Matsnet.
5
5
  Author: Dreadwulf, Duck, Digi
6
6
  Requires-Python: >=3.7
@@ -31,7 +31,7 @@ def mezo_agent_transaction_btc(transaction_prompt: str) -> str:
31
31
  return f"❌ Insufficient BTC balance! You have {sender_balance_btc} BTC but need {amount} BTC."
32
32
 
33
33
  # Fetch nonce and gas price
34
- nonce = web3_instance.eth.get_transaction_count(sender_address)
34
+ nonce = web3_instance.eth.get_transaction_count(sender_address, 'pending')
35
35
  gas_price = web3_instance.eth.gas_price
36
36
  gas_limit = web3_instance.eth.estimate_gas({"to": recipient, "value": amount_wei, "from": sender_address})
37
37
 
@@ -77,7 +77,7 @@ def mezo_agent_musd_transaction(transaction_prompt: str) -> str:
77
77
 
78
78
  try:
79
79
  # Fetch nonce and gas price for the sender
80
- nonce = web3_instance.eth.get_transaction_count(sender_address)
80
+ nonce = web3_instance.eth.get_transaction_count(sender_address, 'pending')
81
81
  gas_price = web3_instance.eth.gas_price
82
82
 
83
83
  # Estimate gas required for the token transfer
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="mezoAgent",
5
- version="0.2.3",
5
+ version="0.2.4",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "web3",
File without changes
File without changes