diff --git a/lib/verifier.js b/lib/verifier.js index e6efe593bcf..e42010320fa 100644 --- a/lib/verifier.js +++ b/lib/verifier.js @@ -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; }; diff --git a/test/client.js b/test/client.js index a639cd700e9..2499c4bfd9e 100644 --- a/test/client.js +++ b/test/client.js @@ -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);