From 8b3fd2c5378b9a12f140a7ac673f0a558aa3e376 Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Tue, 24 Dec 2024 15:11:28 +0900 Subject: [PATCH] persist code hash reset (#2212) --- target_chains/ton/contracts/contracts/Pyth.fc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target_chains/ton/contracts/contracts/Pyth.fc b/target_chains/ton/contracts/contracts/Pyth.fc index adecbb0e9f..a34138d37c 100644 --- a/target_chains/ton/contracts/contracts/Pyth.fc +++ b/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);