Skip to content

Commit

Permalink
revert: disable auto upgrades (#1194)
Browse files Browse the repository at this point in the history
<!--- Please provide a general summary of your changes in the title
above -->

<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days?  -->

Time spent on this PR:

## Pull request type

<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->

Please check the type of change your PR introduces:

- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->

Resolves #<Issue number>

## What is the new behavior?

<!-- Please describe the behavior or changes that are being added by
this PR. -->

-
-
-

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/1194)
<!-- Reviewable:end -->
  • Loading branch information
enitrat authored Jun 10, 2024
1 parent 50e6e2e commit a6b9486
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit a6b9486

Please sign in to comment.