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

If function can return err should we always check it's return value? #22

Open
limpbrains opened this issue Jan 9, 2024 · 1 comment

Comments

@limpbrains
Copy link
Collaborator

Just general question. Some functions can return errors, like setupTransaction. But it is not always checked. Should it be enforced or can be ignored sometimes?

this.setupTransaction({});

@coreyphillips
Copy link
Collaborator

Good question. Most cases, it can be ignored. In this scenario, however, it might be helpful to enforce it since all we're trying to do is return fee information without subsequent calls to correct it or return an error.

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

No branches or pull requests

2 participants