File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
clarity/src/vm/analysis/type_checker/v2_1/tests
stackslib/src/chainstate/stacks/db Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ pub mod contracts;
48
48
49
49
/// Backwards-compatibility shim for type_checker tests. Runs at latest Clarity version.
50
50
pub fn mem_type_check ( exp : & str ) -> CheckResult < ( Option < TypeSignature > , ContractAnalysis ) > {
51
- // TODO (question for reviewers): This uses Clarity 3 with Epoch 2.1. Is this a problem?
52
51
mem_run_analysis (
53
52
exp,
54
53
crate :: vm:: ClarityVersion :: latest ( ) ,
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ impl CoinbaseInterval {
215
215
intervals : & [ CoinbaseInterval ] ,
216
216
effective_height : u64 ,
217
217
) -> u128 {
218
- if intervals. len ( ) == 0 {
218
+ if intervals. is_empty ( ) {
219
219
return 0 ;
220
220
}
221
221
if intervals. len ( ) == 1 {
Original file line number Diff line number Diff line change @@ -4109,7 +4109,7 @@ impl StacksChainState {
4109
4109
current_epoch = StacksEpochId :: Epoch31 ;
4110
4110
}
4111
4111
StacksEpochId :: Epoch31 => {
4112
- panic ! ( "No defined transition from Epoch30 forward" )
4112
+ panic ! ( "No defined transition from Epoch31 forward" )
4113
4113
}
4114
4114
}
4115
4115
}
You can’t perform that action at this time.
0 commit comments