ydaniels / django-cryptocurrency-payment

Simple and flexible app for accepting cryptocurrency payment with no much hassle
MIT License
35 stars 11 forks source link

NameError: name 'NO_HASH_ADDRESS_BALANCE' is not defined #5

Open Michael-Lyon opened 3 years ago

Michael-Lyon commented 3 years ago

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 commented 3 years ago

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

Michael-Lyon commented 3 years ago

Thanks. I'll do that.