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

Passing a string through the scilla_call precompile causes the txn to fail #2163

Open
rrw-zilliqa opened this issue Jan 15, 2025 · 0 comments · May be fixed by #2164
Open

Passing a string through the scilla_call precompile causes the txn to fail #2163

rrw-zilliqa opened this issue Jan 15, 2025 · 0 comments · May be fixed by #2164
Assignees

Comments

@rrw-zilliqa
Copy link
Contributor

  • Write a scilla transition which takes a string (in this case '/ipfs/something').
  • Try to call this via the scilla call precompile.
  • Observe the txn fails

(the ERC721 EVM proxy is a good example of this).

This is because we try to encode the string as a series of bytes and then attempt to parse it as JSON, discover it isn't valid JSON and fault out.

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

Successfully merging a pull request may close this issue.

2 participants