Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.

Commit ac594b1

Browse files
committed
Update params
1 parent db577ef commit ac594b1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

lib/network/protocol.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Protocol.prototype.handleClaim = function(params, callback) {
230230
var token = utils.generateToken();
231231

232232
try {
233-
contractObj = Contract.fromObject(params);
233+
contractObj = Contract.fromObject(params.contract);
234234
} catch (err) {
235235
return;
236236
}
@@ -243,7 +243,6 @@ Protocol.prototype.handleClaim = function(params, callback) {
243243
self._addContractToPendingList(contractObj);
244244
self._negotiateContract(contractObj);
245245

246-
247246
self._network.storageManager.save(item, function(err) {
248247
if (err) {
249248
return callback(err);

lib/network/renter.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ RenterInterface.prototype.publishContract = function(contact, contract) {
6969
assert(contract instanceof Contract, 'Invalid contract supplied');
7070

7171
const data = contract.toObject();
72-
const id = uuid.v4();
7372

7473
const params = {
75-
uuid: id,
76-
contents: data,
74+
contract: data,
7775
contact: this.contact
7876
}
7977

0 commit comments

Comments
 (0)