Skip to content

Commit

Permalink
Add memo to NetworkTransaction model and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
buckyroberts committed Apr 10, 2021
1 parent fa46446 commit a52915f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/thenewboston/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# TODO(dmu) MEDIUM: Make it DRY with pyproject.toml
__version__ = '0.2.2'
__version__ = '0.2.3'
9 changes: 8 additions & 1 deletion src/thenewboston/models/network_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models

from thenewboston.constants.network import ACCEPTED_FEE_CHOICES, MAX_POINT_VALUE, MIN_POINT_VALUE, VERIFY_KEY_LENGTH
from thenewboston.constants.network import (
ACCEPTED_FEE_CHOICES,
MAX_POINT_VALUE,
MEMO_MAX_LENGTH,
MIN_POINT_VALUE,
VERIFY_KEY_LENGTH
)


class NetworkTransaction(models.Model):
Expand All @@ -15,6 +21,7 @@ class NetworkTransaction(models.Model):
]
)
fee = models.CharField(blank=True, choices=ACCEPTED_FEE_CHOICES, max_length=17)
memo = models.CharField(blank=True, max_length=MEMO_MAX_LENGTH)
recipient = models.CharField(max_length=VERIFY_KEY_LENGTH)

class Meta:
Expand Down

0 comments on commit a52915f

Please sign in to comment.