Skip to content

Commit 5424a61

Browse files
authored
Fix check args in CLI (#3557)
1 parent a6f1e42 commit 5424a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

massa-client/src/cmds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ impl Command {
11131113
}
11141114
}
11151115
Command::read_only_execute_smart_contract => {
1116-
if parameters.len() != 2 && parameters.len() <= 4 {
1116+
if parameters.len() < 2 || parameters.len() > 4 {
11171117
bail!("wrong number of parameters");
11181118
}
11191119

@@ -1146,7 +1146,7 @@ impl Command {
11461146
}
11471147
}
11481148
Command::read_only_call => {
1149-
if parameters.len() != 4 && parameters.len() <= 6 {
1149+
if parameters.len() < 4 || parameters.len() > 6 {
11501150
bail!("wrong number of parameters");
11511151
}
11521152

0 commit comments

Comments
 (0)