Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory: '/opt/homebrew/lib/python3.9/site-packages/idex/contracts/Exchange.abi.json' #48

Open
ivancomp0000 opened this issue Jul 13, 2022 · 0 comments

Comments

@ivancomp0000
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant