Skip to content

Commit b044e92

Browse files
committed
resolve conflicts and fixes
1 parent 660bbe1 commit b044e92

File tree

3 files changed

+3
-45
lines changed

3 files changed

+3
-45
lines changed

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_consensus_orchestrator/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,10 @@ apollo_starknet_client.workspace = true
5555
apollo_state_sync_types = { workspace = true, features = ["testing"] }
5656
apollo_storage = { workspace = true, features = ["testing"] }
5757
apollo_test_utils.workspace = true
58-
<<<<<<< HEAD
5958
apollo_time = { workspace = true, features = ["testing", "tokio"] }
60-
||||||| 511a6f78a
61-
=======
6259
assert_matches.workspace = true
6360
blockifier = { workspace = true, features = ["testing"] }
6461
blockifier_test_utils = { workspace = true }
65-
>>>>>>> origin/constaking
6662
cairo-lang-casm.workspace = true
6763
cairo-lang-utils.workspace = true
6864
cairo-vm.workspace = true

crates/blockifier_test_utils/src/contracts.rs

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ const ERC20_CONTRACT_BASE: u32 = 8 * CLASS_HASH_BASE;
5454
const CAIRO_STEPS_TEST_CONTRACT_BASE: u32 = 9 * CLASS_HASH_BASE;
5555
const SIERRA_EXECUTION_INFO_V1_CONTRACT_BASE: u32 = 10 * CLASS_HASH_BASE;
5656
const META_TX_CONTRACT_BASE: u32 = 11 * CLASS_HASH_BASE;
57-
<<<<<<< HEAD
5857
const EMPTY_ACCOUNT_BASE: u32 = 12 * CLASS_HASH_BASE;
59-
||||||| 511a6f78a
60-
=======
6158
const MOCK_STAKING_CONTRACT_BASE: u32 = 12 * CLASS_HASH_BASE;
62-
>>>>>>> origin/constaking
6359

6460
// Contract names.
6561
const ACCOUNT_LONG_VALIDATE_NAME: &str = "account_with_long_validate";
@@ -123,17 +119,11 @@ impl FeatureContract {
123119
CairoVersion::Cairo1(RunnableCairo1::Casm)
124120
}
125121
Self::SierraExecutionInfoV1Contract(runnable_version)
126-
<<<<<<< HEAD
127-
| Self::MetaTx(runnable_version)
128-
| Self::EmptyAccount(runnable_version) => CairoVersion::Cairo1(*runnable_version),
129-
||||||| 511a6f78a
130-
| Self::MetaTx(runnable_version) => CairoVersion::Cairo1(*runnable_version),
131-
=======
132122
| Self::MetaTx(runnable_version)
123+
| Self::EmptyAccount(runnable_version)
133124
| Self::MockStakingContract(runnable_version) => {
134125
CairoVersion::Cairo1(*runnable_version)
135126
}
136-
>>>>>>> origin/constaking
137127
}
138128
}
139129

@@ -145,26 +135,13 @@ impl FeatureContract {
145135
| Self::FaultyAccount(v)
146136
| Self::TestContract(v)
147137
| Self::ERC20(v) => *v = version,
148-
<<<<<<< HEAD
149-
Self::SierraExecutionInfoV1Contract(rv) | Self::MetaTx(rv) | Self::EmptyAccount(rv) => {
150-
match version {
151-
CairoVersion::Cairo0 => panic!("{self:?} must be Cairo1"),
152-
CairoVersion::Cairo1(runnable) => *rv = runnable,
153-
}
154-
}
155-
||||||| 511a6f78a
156-
Self::SierraExecutionInfoV1Contract(rv) | Self::MetaTx(rv) => match version {
157-
CairoVersion::Cairo0 => panic!("{self:?} must be Cairo1"),
158-
CairoVersion::Cairo1(runnable) => *rv = runnable,
159-
},
160-
=======
161138
Self::SierraExecutionInfoV1Contract(rv)
162139
| Self::MetaTx(rv)
140+
| Self::EmptyAccount(rv)
163141
| Self::MockStakingContract(rv) => match version {
164142
CairoVersion::Cairo0 => panic!("{self:?} must be Cairo1"),
165143
CairoVersion::Cairo1(runnable) => *rv = runnable,
166144
},
167-
>>>>>>> origin/constaking
168145
Self::SecurityTests | Self::CairoStepsTestContract | Self::LegacyTestContract => {
169146
panic!("{self:?} contract has no configurable version.")
170147
}
@@ -372,15 +349,9 @@ impl FeatureContract {
372349
| FeatureContract::LegacyTestContract
373350
| FeatureContract::CairoStepsTestContract
374351
| FeatureContract::SierraExecutionInfoV1Contract(_)
375-
<<<<<<< HEAD
376352
| FeatureContract::EmptyAccount(_)
377-
| FeatureContract::MetaTx(_) => None,
378-
||||||| 511a6f78a
379-
| FeatureContract::MetaTx(_) => None,
380-
=======
381353
| FeatureContract::MetaTx(_)
382354
| FeatureContract::MockStakingContract(_) => None,
383-
>>>>>>> origin/constaking
384355
FeatureContract::ERC20(_) => unreachable!(),
385356
};
386357
cairo0_compile(self.get_source_path(), extra_arg, false)
@@ -419,15 +390,10 @@ impl FeatureContract {
419390
self.iter_versions(&versions)
420391
}
421392

422-
<<<<<<< HEAD
423-
Self::SierraExecutionInfoV1Contract(_) | Self::MetaTx(_) | Self::EmptyAccount(_) => {
424-
||||||| 511a6f78a
425-
Self::SierraExecutionInfoV1Contract(_) | Self::MetaTx(_) => {
426-
=======
427393
Self::SierraExecutionInfoV1Contract(_)
428394
| Self::MetaTx(_)
395+
| Self::EmptyAccount(_)
429396
| Self::MockStakingContract(_) => {
430-
>>>>>>> origin/constaking
431397
#[cfg(not(feature = "cairo_native"))]
432398
{
433399
vec![*self]

0 commit comments

Comments
 (0)