No such file or directory: '/opt/homebrew/lib/python3.9/site-packages/idex/contracts/Exchange.abi.json'
ivancomp0000 opened this issue · comments
this code from Contract function
client = Client(api_key, address, private_key)
tx_options = TransactionOptions(gas=150000, gas_price=20000000000)
client.deposit_funds(
asset="USD",
quantity=1123,
tx_options=tx_options,
)
error
File "/Users/PycharmProjects/pythonProject/pythonProject2/test_del_deposits.py", line 20, in
client.deposit_funds(
File "/opt/homebrew/lib/python3.9/site-packages/idex/client.py", line 1219, in deposit_funds
return self._deposit_funds(
File "/opt/homebrew/lib/python3.9/site-packages/idex/client.py", line 310, in _deposit_funds
res = self.execute_idex_contract_function(
File "/opt/homebrew/lib/python3.9/site-packages/idex/client.py", line 242, in execute_idex_contract_function
"abi": self.exchange_abi(),
File "/opt/homebrew/lib/python3.9/site-packages/idex/client.py", line 219, in exchange_abi
with open(Path(file).parent / "contracts" / "Exchange.abi.json") as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/homebrew/lib/python3.9/site-packages/idex/contracts/Exchange.abi.json'