Daniel Chew 11 місяців тому
батько
коміт
8b3fd2c537
1 змінених файлів з 3 додано та 0 видалено
  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);