diff --git a/libraries/fabric-shim/test/typescript/chaincode.ts b/libraries/fabric-shim/test/typescript/chaincode.ts index 815e0fff..73ec0410 100644 --- a/libraries/fabric-shim/test/typescript/chaincode.ts +++ b/libraries/fabric-shim/test/typescript/chaincode.ts @@ -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') {