diff --git a/core/systemcontracts/upgrade.go b/core/systemcontracts/upgrade.go index 0751897c27..0ef6eef11c 100644 --- a/core/systemcontracts/upgrade.go +++ b/core/systemcontracts/upgrade.go @@ -1063,7 +1063,7 @@ func TryUpdateBuildInSystemContract(config *params.ChainConfig, blockNumber *big upgradeBuildInSystemContract(config, blockNumber, lastBlockTime, blockTime, statedb) } // HistoryStorageAddress is a special system contract in bsc, which can't be upgraded - if config.IsOnPrague(blockNumber, lastBlockTime, blockTime) { + if config.IsInBSC() && config.IsOnPrague(blockNumber, lastBlockTime, blockTime) { statedb.SetCode(params.HistoryStorageAddress, params.HistoryStorageCode, tracing.CodeChangeSystemContractUpgrade) statedb.SetNonce(params.HistoryStorageAddress, 1, tracing.NonceChangeNewContract) log.Info("Set code for HistoryStorageAddress", "blockNumber", blockNumber.Int64(), "blockTime", blockTime)