I am using the results library (<https://github.com/arnetheduck/nim-results>)
This is the function
proc getValue(node: ValuesNode, key: Bytes32) : Result[Bytes32, string] =
## Returns the value stored at the given `key`
if node.values[key[^1]] == nil:
return err("Value not found")
else:
return cast[Bytes32](node.values[key[^1]])
Run
I simply want to return the Bytes32 type if everything is correct else return
an error but I am not able to return the Bytes32 value
