Skip to content

Commit 8b3fd2c

Browse files
authored
persist code hash reset (#2212)
1 parent 26e9d9f commit 8b3fd2c

File tree

1 file changed

+3
-0
lines changed
  • target_chains/ton/contracts/contracts

1 file changed

+3
-0
lines changed

target_chains/ton/contracts/contracts/Pyth.fc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ int apply_decimal_expo(int value, int expo) {
478478
;; Reset the upgrade code hash
479479
upgrade_code_hash = 0;
480480

481+
;; Store the data to persist the reset above
482+
store_data();
483+
481484
;; Throw an exception to end the current execution
482485
;; The contract will be restarted with the new code
483486
throw(0);

0 commit comments

Comments
 (0)