update isar address class

This commit is contained in:
julian 2023-01-10 17:49:31 -06:00
parent 15258314cd
commit ce05a647f0
2 changed files with 6 additions and 5 deletions

View file

@ -8,12 +8,16 @@ class AddressException extends SWException {
AddressException(super.message);
}
@Collection(inheritance: true)
@collection
class Address extends CryptoCurrencyAddress {
Id id = Isar.autoIncrement;
@Index(unique: true, replace: true)
late String value;
late List<byte> publicKey;
@Index()
late int derivationIndex;
@enumerated

View file

@ -1,6 +1,3 @@
abstract class CryptoCurrencyAddress {
late String value;
@override
String toString() => value;
// future use?
}