Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove owner requirement on deploying a staged upgrade #794

Merged
merged 2 commits into from
Jul 19, 2023
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
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
- name: Clone the repository
uses: actions/checkout@v3
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry yarn_cache rocksdb:/root/rocksdb
cache-util restore aurora-engine-target@tests@${{ hashFiles('**/Cargo.lock') }}:target
run: cache-util restore cargo_git cargo_registry yarn_cache rocksdb:/root/rocksdb
- name: Preparing rocksdb library
run: scripts/ci/build_rocksdb.sh
- name: Build contracts
Expand All @@ -40,9 +38,7 @@ jobs:
- name: Test testnet
run: cargo make --profile testnet test-workspace
- name: Save cache
run: |
cache-util save cargo_git cargo_registry yarn_cache
cache-util msave aurora-engine-target@tests@${{ hashFiles('**/Cargo.lock') }}:target
run: cache-util save cargo_git cargo_registry yarn_cache

test_modexp:
name: Test modexp suite (mainnet, testnet)
Expand Down
1 change: 0 additions & 1 deletion engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ mod contract {
let mut io = Runtime;
let state = state::get_state(&io).sdk_unwrap();
require_running(&state);
require_owner_only(&state, &io.predecessor_account_id());
let index = internal_get_upgrade_index();
if io.block_height() <= index {
sdk::panic_utf8(errors::ERR_NOT_ALLOWED_TOO_EARLY);
Expand Down
Loading