schema: bugfix, store permanode ref as string in claim

Change-Id: I8ed216f268cc458ea2c79943f956034cea60e38d
This commit is contained in:
mpl 2013-02-26 23:48:24 +01:00
parent 1c6884aa88
commit e6f4a75e87
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ func NewClaim(claims ...*ClaimParam) *Builder {
func populateClaimMap(m map[string]interface{}, cp *ClaimParam) {
m["claimType"] = string(cp.Type)
m["attribute"] = cp.Attribute
m["permaNode"] = cp.Permanode
m["permaNode"] = cp.Permanode.String()
if !(cp.Type == DelAttribute && cp.Value == "") {
m["value"] = cp.Value
}