mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Merge "[FAB-7487] Fix typo in node/fabcar.js"
This commit is contained in:
commit
0503e757ac
1 changed files with 3 additions and 3 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
@ -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 ===========');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue