File tree 1 file changed +9
-12
lines changed
stackslib/src/chainstate/stacks/db
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -1266,18 +1266,15 @@ impl StacksChainState {
1266
1266
. expect ( "BUG: total block cost decreased" ) ;
1267
1267
let sponsor = tx. sponsor_address ( ) . map ( |a| a. to_account_principal ( ) ) ;
1268
1268
1269
- // Beginning in epoch 3.0, smart contracts are compiled to Wasm
1270
- // and executed using the Wasm runtime.
1271
- debug ! ( "Before Epoch 3.0 check" ) ;
1272
- if epoch_id >= StacksEpochId :: Epoch30 {
1273
- debug ! ( "Compiling the contract to wasm binary" ) ;
1274
- let mut module = compile_contract ( contract_analysis. clone ( ) ) . map_err ( |e| {
1275
- Error :: ClarityError ( clarity_error:: Wasm ( WasmError :: WasmGeneratorError (
1276
- e. message ( ) ,
1277
- ) ) )
1278
- } ) ?;
1279
- contract_ast. wasm_module = Some ( module. emit_wasm ( ) ) ;
1280
- }
1269
+ // Compile contracts to Wasm and
1270
+ // execute using the Wasm runtime.
1271
+ debug ! ( "Compiling the contract to wasm binary" ) ;
1272
+ let mut module = compile_contract ( contract_analysis. clone ( ) ) . map_err ( |e| {
1273
+ Error :: ClarityError ( clarity_error:: Wasm ( WasmError :: WasmGeneratorError (
1274
+ e. message ( ) ,
1275
+ ) ) )
1276
+ } ) ?;
1277
+ contract_ast. wasm_module = Some ( module. emit_wasm ( ) ) ;
1281
1278
1282
1279
// execution -- if this fails due to a runtime error, then the transaction is still
1283
1280
// accepted, but the contract does not materialize (but the sender is out their fee).
You can’t perform that action at this time.
0 commit comments