Skip to content

Commit

Permalink
fix: failed verification if customData is object
Browse files Browse the repository at this point in the history
  • Loading branch information
troggy committed Apr 11, 2016
1 parent 5437f2e commit 1848cd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/verifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Verifier.checkProposalCreation = function(args, txp) {
if (_.isNumber(args.feePerKb) && (txp.feePerKb != args.feePerKb)) return false;
if (!strEqual(txp.payProUrl, args.payProUrl)) return false;
if (!strEqual(txp.message, args.message)) return false;
if (!strEqual(txp.customData, args.customData)) return false;
if (!_.isEqual(txp.customData, args.customData)) return false;

return true;
};
Expand Down
1 change: 1 addition & 0 deletions test/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2111,6 +2111,7 @@ describe('client API', function() {
}],
message: 'hello',
feePerKb: 100e2,
customData: {someObj: { x: 1 }, someStr: "str"}
};
clients[0].createTxProposal(opts, function(err, txp) {
should.not.exist(err);
Expand Down

0 comments on commit 1848cd5

Please sign in to comment.