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(target_chains/ton): fix guardian set message validation within expiry window #2059

Merged
merged 1 commit into from
Oct 24, 2024
Merged
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
2 changes: 1 addition & 1 deletion target_chains/ton/contracts/contracts/Wormhole.fc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int governance_action_is_consumed(int hash) method_id {
(int expiration_time, cell keys_dict, int key_count) = get_guardian_set_internal(vm_guardian_set_index);
throw_if(ERROR_INVALID_GUARDIAN_SET_KEYS_LENGTH, cell_null?(keys_dict));
throw_unless(ERROR_INVALID_GUARDIAN_SET,
(current_guardian_set_index == vm_guardian_set_index) &
(current_guardian_set_index >= vm_guardian_set_index) &
((expiration_time == 0) | (expiration_time > now()))
);
int signers_length = in_msg_body~load_uint(8);
Expand Down
Loading