|
|
@ -79,6 +79,7 @@ TxProposal.create = function(opts) { |
|
|
|
x.proposalSignaturePubKey = opts.proposalSignaturePubKey; |
|
|
|
x.proposalSignaturePubKeySig = opts.proposalSignaturePubKeySig; |
|
|
|
x.addressType = opts.addressType || Constants.SCRIPT_TYPES.P2SH; |
|
|
|
x.derivationStrategy = opts.derivationStrategy || Constants.DERIVATION_STRATEGIES.BIP45; |
|
|
|
x.customData = opts.customData; |
|
|
|
|
|
|
|
if (_.isFunction(TxProposal._create[x.type])) { |
|
|
@ -127,6 +128,7 @@ TxProposal.fromObj = function(obj) { |
|
|
|
x.proposalSignaturePubKey = obj.proposalSignaturePubKey; |
|
|
|
x.proposalSignaturePubKeySig = obj.proposalSignaturePubKeySig; |
|
|
|
x.addressType = obj.addressType || Constants.SCRIPT_TYPES.P2SH; |
|
|
|
x.derivationStrategy = obj.derivationStrategy || Constants.DERIVATION_STRATEGIES.BIP45; |
|
|
|
x.customData = obj.customData; |
|
|
|
|
|
|
|
return x; |
|
|
|