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:
Rob Mulholand
2019-02-08 11:41:17 -06:00
parent 09abcb841a
commit dba4e48a3e
5 changed files with 19 additions and 13 deletions
@@ -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
}