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

(fix) Pass strings to scilla as strings, rather than arrays of their bytes #2164

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rrw-zilliqa
Copy link
Contributor

Fixes #2163

@rrw-zilliqa
Copy link
Contributor Author

(note that I don't allege that this is the right fix - just that it works for my use case!)

@rrw-zilliqa rrw-zilliqa enabled auto-merge January 15, 2025 17:50
Copy link
Contributor

🐰 Bencher Report

Branchusers/richard/2163-passing-strings-to-scilla
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
process-empty/process-empty📈 view plot
🚷 view threshold
8.46
(-7.96%)
10.37
(81.63%)
produce-full/produce-full📈 view plot
🚷 view threshold
1,854.20
(-5.75%)
2,287.42
(81.06%)
🐰 View full continuous benchmarking report in Bencher

@JamesHinshelwood
Copy link
Contributor

Would a transaction have been able to be mined with the previous behaviour? If so, we need to conditionalise this with fork configuration.

@rrw-zilliqa
Copy link
Contributor Author

Would a transaction have been able to be mined with the previous behaviour? If so, we need to conditionalise this with fork configuration.

I don't believe so - the old code returned an array of bytes; if you could find an array of bytes which was valid JSON, then potentially yes, but I can't think of one. Happy either way, though - let me know if you want to add it?

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 this pull request may close these issues.

Passing a string through the scilla_call precompile causes the txn to fail
2 participants