Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hex with odd digit count panics in modern compiler #93

Open
richardkiss opened this issue May 22, 2024 · 1 comment
Open

Hex with odd digit count panics in modern compiler #93

richardkiss opened this issue May 22, 2024 · 1 comment

Comments

@richardkiss
Copy link
Contributor

% run '(mod X (include *standard-cl-23*) (logand 0xf 100))'
thread '<unnamed>' panicked at src/compiler/sexp.rs:278:35:
should convert from hex: InvalidInputLength
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/Users/kiss/unbacked/tmp/virtualenvs/_Users_kiss_projects_chia_chialisp_stdlib_main/venv/bin/run", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/Users/kiss/unbacked/tmp/virtualenvs/_Users_kiss_projects_chia_chialisp_stdlib_main/venv/lib/python3.12/site-packages/clvm_tools/cmds.py", line 101, in run
    sys.stdout.write(bytes(clvm_tools_rs.launch_tool("run", args, 2)).decode('utf8'))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pyo3_runtime.PanicException: should convert from hex: InvalidInputLength

Probably better to just prefix 0-pad0xf to 0x0f.

@prozacchiwawa
Copy link
Contributor

thanks this is next in line: #101
apologies for not having retired this issue earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants