Skip to content

Commit a4313de

Browse files
committed
CreateHTLC now returns Hash in fabric node SDK
Signed-off-by: sandeep.nishad1 <[email protected]>
1 parent 4a012bf commit a4313de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sdks/fabric/interoperation-node-sdk/package-local.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"blockchain",
77
"interoperability"
88
],
9-
"version": "1.2.4",
9+
"version": "1.2.5",
1010
"author": "V. Ramakrishna",
1111
"tag": "latest",
1212
"main": "build/index.js",

sdks/fabric/interoperation-node-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"blockchain",
77
"interoperability"
88
],
9-
"version": "1.2.4",
9+
"version": "1.2.5",
1010
"author": "V. Ramakrishna",
1111
"tag": "latest",
1212
"main": "build/index.js",

sdks/fabric/interoperation-node-sdk/src/AssetManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const createHTLC = async (
152152
setTimeout(timeoutCallback, (expiryTimeSecs * 1000) - Date.now(), contract, assetType, assetID, recipientECert, hashPreimage, hashValue);
153153
}
154154

155-
return { preimage: hashPreimage, result: result };
155+
return { preimage: hashPreimage, hash: hashValue, result: result };
156156
};
157157

158158
/**
@@ -225,7 +225,7 @@ const createFungibleHTLC = async (
225225
setTimeout(timeoutCallback, (expiryTimeSecs * 1000) - Date.now(), contract, contractId, assetType, numUnits, recipientECert, hashPreimage, hashValue);
226226
}
227227

228-
return { preimage: hashPreimage, result: contractId };
228+
return { preimage: hashPreimage, hash: hashValue, result: contractId };
229229
};
230230

231231
/**

0 commit comments

Comments
 (0)