Skip to content

Commit

Permalink
add patch to bypass upgradability checks for policy exempt addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
0xzoz committed Feb 28, 2024
1 parent f496384 commit 079c2e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions framework/libra-framework/sources/code.move
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,9 @@ module diem_framework::code {
if (old.name == pack.name) {

upgrade_number = old.upgrade_number + 1;

check_upgradability(old, &pack, &module_names);
if !is_policy_exempted_address(addr) {
check_upgradability(old, &pack, &module_names);
}
index = i;
} else {
check_coexistence(old, &module_names)
Expand Down

0 comments on commit 079c2e1

Please sign in to comment.