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 0dcba88 commit 178d48bCopy full SHA for 178d48b
lib/contract.js
@@ -68,9 +68,7 @@ var checkParams = function(args, contract){
68
}catch(e){
69
console.log(e, args)
70
}
71
- if (!args[i]) {
72
- fulfilled = true;
73
- } else {
+ if (args[i]) {
74
type = typeOf(args[i]);
75
fulfilled = false;
76
for(j=0; j<types.length; j++){
@@ -79,9 +77,9 @@ var checkParams = function(args, contract){
79
77
break;
80
78
81
82
- if(fulfilled===false){
83
- return false;
84
- }
+ }
+ if(fulfilled===false){
+ return false;
85
86
87
return true;
0 commit comments