mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-19 00:15:08 +00:00
Updated marbles_chaincode.js
changed args[0].lenth to changed (args[0].length t
This commit is contained in:
parent
4c2ac0dbf3
commit
f3e0281a50
1 changed files with 4 additions and 4 deletions
|
|
@ -65,16 +65,16 @@ let Chaincode = class {
|
|||
}
|
||||
// ==== Input sanitation ====
|
||||
console.info('--- start init marble ---')
|
||||
if (args[0].lenth <= 0) {
|
||||
if (args[0].length <= 0) {
|
||||
throw new Error('1st argument must be a non-empty string');
|
||||
}
|
||||
if (args[1].lenth <= 0) {
|
||||
if (args[1].length <= 0) {
|
||||
throw new Error('2nd argument must be a non-empty string');
|
||||
}
|
||||
if (args[2].lenth <= 0) {
|
||||
if (args[2].length <= 0) {
|
||||
throw new Error('3rd argument must be a non-empty string');
|
||||
}
|
||||
if (args[3].lenth <= 0) {
|
||||
if (args[3].length <= 0) {
|
||||
throw new Error('4th argument must be a non-empty string');
|
||||
}
|
||||
let marbleName = args[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue