We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f1e42 commit 5424a61Copy full SHA for 5424a61
massa-client/src/cmds.rs
@@ -1113,7 +1113,7 @@ impl Command {
1113
}
1114
1115
Command::read_only_execute_smart_contract => {
1116
- if parameters.len() != 2 && parameters.len() <= 4 {
+ if parameters.len() < 2 || parameters.len() > 4 {
1117
bail!("wrong number of parameters");
1118
1119
@@ -1146,7 +1146,7 @@ impl Command {
1146
1147
1148
Command::read_only_call => {
1149
- if parameters.len() != 4 && parameters.len() <= 6 {
+ if parameters.len() < 4 || parameters.len() > 6 {
1150
1151
1152
0 commit comments