Skip to content

Commit

Permalink
[FAB-7487] Fix typo in node/fabcar.js
Browse files Browse the repository at this point in the history
According to this tutorial http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html
the function name is spelled changeCarOwner.

Renamed changeCarowner to changeCarOwner.

Change-Id: Ic32c76137e3686cbf951f846da0ef8c4c5d8986d
Signed-off-by: Nikita Klein <objcoding@gmail.com>
  • Loading branch information
nikklein committed Dec 29, 2017
1 parent 54ffa5f commit a0c1687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chaincode/fabcar/node/fabcar.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ let Chaincode = class {
}
}

async changeCarowner(stub, args) {
console.info('============= START : changeCarowner ===========');
async changeCarOwner(stub, args) {
console.info('============= START : changeCarOwner ===========');
if (args.length != 2) {
throw new Error('Incorrect number of arguments. Expecting 2');
}
Expand All @@ -186,7 +186,7 @@ let Chaincode = class {
car.owner = args[1];

await stub.putState(args[0], Buffer.from(JSON.stringify(car)));
console.info('============= END : changeCarowner ===========');
console.info('============= END : changeCarOwner ===========');
}
};

Expand Down

0 comments on commit a0c1687

Please sign in to comment.