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

token-client: Check simulation results for error #7523

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

Conversation

joncinque
Copy link
Contributor

Problem

If the simulation for compute unit limit fails in the token-cli, it may continue to try to broadcast a transaction since the error falls through. Although that transaction should fail too, at least we don't run the risk of broadcasting something known to be bad.

Summary of changes

Add an err() function on the simulation results, and abort if the simulation for compute units fails.

#### Problem

If the simulation for compute unit limit fails in the token-cli, it may
continue to try to broadcast a transaction since the error falls
through. Although that transaction should fail too, at least we don't
run the risk of broadcasting something known to be bad.

#### Summary of changes

Add an `err()` function on the simulation results, and abort if the
simulation for compute units fails.
@github-actions github-actions bot added the stale [bot only] Added to stale content; will be closed soon label Dec 10, 2024
@Ownerbusinessjjfm

This comment was marked as off-topic.

@github-actions github-actions bot removed the stale [bot only] Added to stale content; will be closed soon label Dec 12, 2024
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.

2 participants