mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
update isar address class
This commit is contained in:
parent
15258314cd
commit
ce05a647f0
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
abstract class CryptoCurrencyAddress {
|
||||
late String value;
|
||||
|
||||
@override
|
||||
String toString() => value;
|
||||
// future use?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue