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

;; ignore errors in function send_money #39

Open
isopen opened this issue Oct 24, 2022 · 0 comments
Open

;; ignore errors in function send_money #39

isopen opened this issue Oct 24, 2022 · 0 comments

Comments

@isopen
Copy link

isopen commented Oct 24, 2022

Case when an error occurred while sending amount_to_send

  1. L6
    send_msg(address, amount_to_send, op::fill_up, cur_lt(), null(), 2); ;; ignore errors (suppose an error occurred at this step)
  2. L7
    current balance decreased by amount_to_send
    my_balance -= amount_to_send;

Toncoins were not sent, but the user's balance decreased. It may be necessary to use throw_if

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

1 participant