mirror of https://github.com/BTCPrivate/copay.git
fix helper
This commit is contained in:
parent
06c80ceaae
commit
e9525687b7
|
@ -103,6 +103,9 @@ mocks.init = function(fixtures, controllerName, opts, done) {
|
|||
|
||||
function createHash(method, url, args) {
|
||||
var headers = JSON.stringify(bwc._getHeaders(method, url, args));
|
||||
|
||||
// Fixes BWC version... TODO
|
||||
headers=headers.replace(/bwc-\d\.\d\.\d/,'bwc-2.4.0')
|
||||
var x = method + url + JSON.stringify(args) + headers;
|
||||
var sjcl = $delegate.getSJCL();
|
||||
return sjcl.codec.hex.fromBits(sjcl.hash.sha256.hash(x));
|
||||
|
|
Loading…
Reference in New Issue