Parcourir la source

persist code hash reset (#2212)

Daniel Chew il y a 11 mois
Parent
commit
8b3fd2c537
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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);