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

NameError: name 'NO_HASH_ADDRESS_BALANCE' is not defined #5

Open
Michael-Lyon opened this issue Sep 5, 2021 · 2 comments
Open

NameError: name 'NO_HASH_ADDRESS_BALANCE' is not defined #5

Michael-Lyon opened this issue Sep 5, 2021 · 2 comments

Comments

@Michael-Lyon
Copy link

  • Django Cryptocurrency Payment version:
  • Django version: 3.1
  • Python version: 3.9
  • Operating System: linux parrot os

Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

What I Did

I tried to make use of the tasks.update_payment_status()

Paste the command(s) you ran and the output.
Traceback (most recent call last):
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/home/michaellyon/flexvest/taskManager/run_tasks.py", line 54, in test3
    tasks.update_payment_status()
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/cryptocurrency_payment/tasks.py", line 16, in update_payment_status
    crypto_task.update_crypto_currency_payment_status()
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/cryptocurrency_payment/tasks.py", line 88, in update_crypto_currency_payment_status
    status, value = self.backend_obj.confirm_address_payment(
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/merchant_wallet/backends/btc.py", line 178, in confirm_address_payment
    return NO_HASH_ADDRESS_BALANCE, None
NameError: name 'NO_HASH_ADDRESS_BALANCE' is not defined
Job "test3 (trigger: interval[0:03:00], next run at: 2021-09-05 23:51:07 UTC)" raised an exception
Traceback (most recent call last):
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/home/michaellyon/flexvest/taskManager/run_tasks.py", line 54, in test3
    tasks.update_payment_status()
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/cryptocurrency_payment/tasks.py", line 16, in update_payment_status
    crypto_task.update_crypto_currency_payment_status()
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/cryptocurrency_payment/tasks.py", line 88, in update_crypto_currency_payment_status
    status, value = self.backend_obj.confirm_address_payment(
  File "/home/michaellyon/flexvest/env/lib/python3.9/site-packages/merchant_wallet/backends/btc.py", line 178, in confirm_address_payment
    return NO_HASH_ADDRESS_BALANCE, None
NameError: name 'NO_HASH_ADDRESS_BALANCE' is not defined
@ydaniels
Copy link
Owner

ydaniels commented Sep 6, 2021

Yup found that, Thanks. Run pip install merchant-wallet --upgrade

@Michael-Lyon
Copy link
Author

Thanks. I'll do that.

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

2 participants