File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to the versioning scheme outlined in the [ README.md] ( README.md ) .
7
7
8
+ ## [ 2.4.0.0.4]
9
+
10
+ This is a high-priority hotfix that addresses a bug in transaction processing which
11
+ could impact miner availability.
12
+
8
13
## [ 2.4.0.0.3]
9
14
10
15
This is a high-priority hotfix that addresses a bug in transaction processing which
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ macro_rules! switch_on_global_epoch {
69
69
70
70
use crate :: vm:: ClarityVersion ;
71
71
72
+ use super :: errors:: InterpreterError ;
73
+
72
74
mod arithmetic;
73
75
mod assets;
74
76
mod boolean;
@@ -606,7 +608,10 @@ fn special_print(
606
608
env : & mut Environment ,
607
609
context : & LocalContext ,
608
610
) -> Result < Value > {
609
- let input = eval ( & args[ 0 ] , env, context) ?;
611
+ let arg = args. get ( 0 ) . ok_or_else ( || {
612
+ InterpreterError :: BadSymbolicRepresentation ( "Print should have an argument" . into ( ) )
613
+ } ) ?;
614
+ let input = eval ( arg, env, context) ?;
610
615
611
616
runtime_cost ( ClarityCostFunction :: Print , env, input. size ( ) ) ?;
612
617
You can’t perform that action at this time.
0 commit comments