Kaynağa Gözat

persist code hash reset (#2212)

Daniel Chew 11 ay önce
ebeveyn
işleme
8b3fd2c537
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      target_chains/ton/contracts/contracts/Pyth.fc

+ 3 - 0
target_chains/ton/contracts/contracts/Pyth.fc

@@ -478,6 +478,9 @@ int apply_decimal_expo(int value, int expo) {
     ;; Reset the upgrade code hash
     upgrade_code_hash = 0;
 
+    ;; Store the data to persist the reset above
+    store_data();
+
     ;; Throw an exception to end the current execution
     ;; The contract will be restarted with the new code
     throw(0);