Nil account data is not an error

This commit is contained in:
Slavomir 2021-07-10 18:10:58 +02:00
parent ec2eda79c5
commit 87aac3d6a0
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ func (env *DataBytesOrJSON) UnmarshalJSON(data []byte) error {
if temp == nil {
// TODO: is this an error?
return fmt.Errorf("envelope is nil: %v", env)
return nil
}
// TODO: check if first character is `[` as the check.
// TODO: store raw bytes, and unmarshal on request.