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

[Fix] Early out of bounced messages #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion contracts/wallet_v5.fc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const int size::query_id = 64;
const int prefix::signed_external = 0x7369676E;
const int prefix::signed_internal = 0x73696E74;
const int prefix::extension_action = 0x6578746E;
const int prefix::bounced = 0xffffff;

(slice, int) check_and_remove_add_extension_prefix(slice body) impure asm "x{02} SDBEGINSQ";
(slice, int) check_and_remove_remove_extension_prefix(slice body) impure asm "x{03} SDBEGINSQ";
Expand Down Expand Up @@ -225,7 +226,10 @@ cell verify_c5_actions(cell c5, int is_external) inline {
return (); ;; just receive Toncoins
}

;; bounced messages has 0xffffff prefix and skipped by op check
;; bounced messages has 0xffffff prefix
if (op == prefix::bounced) {
return ();
}

if (op == prefix::extension_action) {
in_msg_body~skip_bits(size::message_operation_prefix);
Expand Down