Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

fix verification of payProUrl equals null #98

Merged
merged 3 commits into from
Aug 14, 2015
Merged

fix verification of payProUrl equals null #98

merged 3 commits into from
Aug 14, 2015

Conversation

greggzigler
Copy link
Contributor

Now verifier.js (line 104) matches api.js (line 836) regarding payProUrl in signature

@greggzigler greggzigler changed the title WIP: bug verifying payProUrl if null WIP: fix verification of payProUrl equals null Aug 3, 2015
toAddress: toAddress,
}]
};
function doit(opts, doNotVerifyPayPro, doBroadcast, done) {
helpers.createAndJoinWallet(clients, 1, 1, function(w) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please move creation of the wallet & address outside of this function so it only gets called once at the start of the test?

@greggzigler greggzigler changed the title WIP: fix verification of payProUrl equals null fix verification of payProUrl equals null Aug 3, 2015
@@ -903,7 +903,7 @@ API.prototype.sendTxProposal = function(opts, cb) {
feePerKb: opts.feePerKb,
payProUrl: opts.payProUrl,
type: opts.type,
outputs: opts.outputs,
outputs: _.cloneDeep(opts.outputs),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because at line 910, the message is overwritten with the encrypted message. without cloning, the sendTxProposal() function will modify the client's copy of opts.

matiu added a commit that referenced this pull request Aug 14, 2015
fix verification of payProUrl equals null
@matiu matiu merged commit 0317552 into bitpay:master Aug 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants