refactor txProposal input signature handling

This commit is contained in:
Matias Alejo Garcia 2014-08-21 19:30:31 -04:00
commit 18ffaa172a
4 changed files with 49 additions and 39 deletions

View file

@ -219,7 +219,7 @@ describe('Wallet model', function() {
var t = w.txProposals;
var txp = t.txps[ntxid];
Object.keys(txp._inputSignatures).length.should.equal(1);
Object.keys(txp._inputSigners).length.should.equal(1);
var tx = txp.builder.build();
should.exist(tx);
chai.expect(txp.comment).to.be.null;
@ -1108,7 +1108,7 @@ describe('Wallet model', function() {
};
});
var txp = {
_inputSignatures: [
_inputSigners: [
['123']
],
inputChainPaths: ['/m/1'],
@ -1126,7 +1126,7 @@ describe('Wallet model', function() {
};
});
var txp = {
_inputSignatures: [
_inputSigners: [
['234']
],
inputChainPaths: ['/m/1'],
@ -1145,7 +1145,7 @@ describe('Wallet model', function() {
};
});
var txp = {
_inputSignatures: [
_inputSigners: [
['234', '123']
],
inputChainPaths: ['/m/1'],
@ -1165,7 +1165,7 @@ describe('Wallet model', function() {
};
});
var txp = {
_inputSignatures: [
_inputSigners: [
['234', '123'],
['234']
],