This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 188
Parser breaks when reading --tx-attr argument with spaces #1009
Comments
@hal0x2328 I am having trouble recreating your error. I changed the attribute unittests in test_send_commands.py to:
and got these results:
and
I will let you know if I see something different from within prompt once I can get a privatenet spun up. |
@hal0x2328 I confirmed the behavior and am pushing a possible solution now |
@hal0x2328 could you confirm this issue is resolved? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior
Using
--tx-attrs
with any spaces inside the attribute JSON (even inside quoted strings) results in the following error:Expected behavior
To properly parse tx attributes with spaces in them
How to reproduce
Try the following invocation on TestNet - the
--tx-attr
value is taken directly from the example shown by thesc invoke help
command in np-prompt:The spaces both inside and outside of the quotes will stop the parser from reading the rest of the string, resulting in the EOF error. This works:
but it's not ideal for text remarks to be unable to have spaces in them. I tried escaping the spaces with one or more backslashes to no avail. The only way to get the attribute accepted is to remove all spaces inside and outside of the quotes.
Your environment
The text was updated successfully, but these errors were encountered: