瀏覽代碼

persist code hash reset (#2212)

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);