Merge pull request #679 from cosmos/allow-empty-attribute-values

Allow empty value on event attributes
This commit is contained in:
Simon Warta 2021-02-12 14:18:24 +01:00 committed by GitHub
commit 03c98c6d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ interface RpcAttribute {
function decodeAttribute(attribute: RpcAttribute): responses.Attribute {
return {
key: fromBase64(assertNotEmpty(attribute.key)),
value: fromBase64(assertNotEmpty(attribute.value)),
value: fromBase64(optional(attribute.value, "")),
};
}