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

Add fallback parsing to edge cases in simulateTransaction. #136

Closed
wants to merge 1 commit into from

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Sep 6, 2023

This works around a Soroban RPC bug (stellar/soroban-rpc#20) in which results will have a result object that is invalid. The parseRawSimulation abstraction assumes a valid schema, so this changes retval to be a void ScVal in case of an invalid response.

This also adds a way to make the raw JSON RPC request again, Server._simulateTransaction(), in order to prevent any internal parsing errors from affecting development. Developers can then just look at the JSON directly (it also helps with debugging).

@Shaptic
Copy link
Contributor Author

Shaptic commented Sep 12, 2023

Duped in stellar/stellar-cli#132 now.

@Shaptic Shaptic closed this Sep 12, 2023
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.

1 participant