diff --git a/faucet/migrations/0058_alter_claimreceipt_amount.py b/faucet/migrations/0058_alter_claimreceipt_amount.py new file mode 100644 index 00000000..9719fa06 --- /dev/null +++ b/faucet/migrations/0058_alter_claimreceipt_amount.py @@ -0,0 +1,19 @@ +# Generated by Django 4.0.4 on 2023-10-02 22:29 + +import core.models +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('faucet', '0057_alter_claimreceipt_amount'), + ] + + operations = [ + migrations.AlterField( + model_name='claimreceipt', + name='amount', + field=core.models.BigNumField(max_length=200), + ), + ] diff --git a/faucet/models.py b/faucet/models.py index 8893b94c..1f9a3123 100644 --- a/faucet/models.py +++ b/faucet/models.py @@ -162,7 +162,7 @@ class ClaimReceipt(models.Model): passive_address = models.CharField(max_length=512, null=True, blank=True) - amount = models.BigIntegerField() + amount = BigNumField() datetime = models.DateTimeField() last_updated = models.DateTimeField(auto_now=True, null=True, blank=True) batch = models.ForeignKey( diff --git a/faucet/tasks.py b/faucet/tasks.py index d71abfde..e5815d9f 100644 --- a/faucet/tasks.py +++ b/faucet/tasks.py @@ -87,7 +87,7 @@ def process_batch(self, batch_pk): user_profile=receipt.user_profile, wallet_type=batch.chain.chain_type, ).address, - "amount": receipt.amount, + "amount": int(receipt.amount), } for receipt in batch.claims.all() ]