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

Serhii/new revert #45

Merged
merged 17 commits into from
Oct 31, 2024
Merged

Serhii/new revert #45

merged 17 commits into from
Oct 31, 2024

Conversation

SeHor05
Copy link
Contributor

@SeHor05 SeHor05 commented Oct 20, 2024

No description provided.

@@ -1512,7 +1525,13 @@ fn outmsg_action_handler(
if (mode & SENDMSG_ALL_BALANCE) != 0 {
// send all remaining account balance
result_value = acc_balance.clone();
int_header.value = acc_balance.clone();
if reserved_value.grams == Grams::zero() {
if let Err(_) = result_value.grams.sub(&Grams::from(need_to_burn)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check result is error

if !is_special {
let in_fwd_fee = self.config.calc_fwd_fee(is_masterchain, &in_msg_cell)?;
log::debug!(target: "executor", "import message fee: {}, acc_balance: {}", in_fwd_fee, acc_balance.grams);
if !acc_balance.grams.sub(&in_fwd_fee)? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check that result is ok true

@elasticLove1 elasticLove1 merged commit 6c1e85e into main Oct 31, 2024
0 of 4 checks passed
@elasticLove1 elasticLove1 deleted the serhii/new_revert branch October 31, 2024 13:07
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.

3 participants