Use map for key in storage value metadata
- Enables inserting multiple keys for one storage row (e.g. ilk and urn)
This commit is contained in:
@@ -24,8 +24,14 @@ const (
|
||||
Address
|
||||
)
|
||||
|
||||
type Key int
|
||||
|
||||
const (
|
||||
Ilk Key = iota
|
||||
)
|
||||
|
||||
type StorageValueMetadata struct {
|
||||
Name string
|
||||
Key string
|
||||
Keys map[Key]string
|
||||
Type ValueType
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user