Skip to content
Snippets Groups Projects
Commit 14a3faf0 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

Merge branch 'dummyHack' into 'release'

Update preimage.go

See merge request !62
parents 8ea3b99e 245e6e05
No related branches found
No related tags found
2 merge requests!67Release,!62Update preimage.go
......@@ -36,3 +36,19 @@ func (c *Client) GetPreimages(identity []byte) (string, error) {
return string(marshaled), err
}
// hack on getPreimages so it works on iOS per https://github.com/golang/go/issues/46893
func (c *Client) GetPreimagesHack(dummy string, identity []byte) (string, error) {
iid := &id.ID{}
copy(iid[:], identity)
list, exist := c.api.GetStorage().GetEdge().Get(iid)
if !exist {
return "", errors.Errorf("Could not find a preimage list for %s", iid)
}
marshaled, err := json.Marshal(&list)
return string(marshaled), err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment