Skip to content

Commit

Permalink
Fix incorrect test cases related to hyperledger#413
Browse files Browse the repository at this point in the history
Signed-off-by: Jerrylum <[email protected]>
  • Loading branch information
Jerrylum committed Mar 13, 2024
1 parent 8d8045f commit 0a05b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/fabric-shim/test/typescript/chaincode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ class TestTS implements ChaincodeInterface {

if (fcn === 'ThrowError') {
const err: Error = new Error('Had a problem');
return shim.error(Buffer.from(err.message));
return shim.error(err.message);
}

if (fcn === 'ThrowErrorShim') {
const err: Error = new Error('Had a problem');
return Shim.error(Buffer.from(err.message));
return Shim.error(err.message);
}

if (fcn === 'SuccessShim') {
Expand Down

0 comments on commit 0a05b81

Please sign in to comment.