This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[bug] simulate transaction - return data truncates 0 trailing zero bytes #31391
Comments
ngundotra
assigned ngundotra, CriesofCarrots and joncinque and unassigned CriesofCarrots and ngundotra
Apr 28, 2023
Why would you parse the log line instead of just adding back the padding, if for some reason you need it to be 1024 bytes? |
That's another great alternative solution. The issue is |
Also hitting this - would love to see this fixed |
Not sure what's different about my setup but I'm not able to use the logs workaround - my logs don't show a
My return data is truncated and ordinarily has two zero bytes at the end |
My sad workaround is a wrapper type like this to always ensure there are no trailing 0 bytes :(
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
Here's the output of connection.simulateTransaction(...)
value.logs:
This is a problem because its unexpected behavior. It's not high priority because devs can just parse the 2nd to last log line for their untruncated return data.
Proposed Solution
Just return the full 1024 (MAX_CPI_DATA) slab length in RPC response value.return_data
The text was updated successfully, but these errors were encountered: