Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

revert: disable auto upgrades #1194

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/kakarot/account.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ namespace Account {

// Upgrade the target starknet contract's class if it's not the latest one.
// The contract must be deployed on starknet already.
Internals.check_and_upgrade_account_class(address);
// TODO! Uncomment when the upgrade is needed
// Internals.check_and_upgrade_account_class(address);

let (bytecode_len, bytecode) = IAccount.bytecode(contract_address=starknet_address);
let (nonce) = IAccount.get_nonce(contract_address=starknet_address);
Expand Down
1 change: 1 addition & 0 deletions tests/end_to_end/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async def test_should_update_cairo1_helpers_class(
== target_class
)

@pytest.mark.xfail(reason="Disabled")
class TestAutoUpgradeContracts:
async def test_should_upgrade_outdated_contract_transaction_target(
self,
Expand Down
Loading