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
@@ -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, "")),
};
}