|
@ -57,7 +57,7 @@ CopayServer.prototype.createWallet = function(opts, cb) { |
|
|
pubKey; |
|
|
pubKey; |
|
|
|
|
|
|
|
|
Utils.checkRequired(opts, ['id', 'name', 'm', 'n', 'pubKey']); |
|
|
Utils.checkRequired(opts, ['id', 'name', 'm', 'n', 'pubKey']); |
|
|
if (!Wallet.verifyCopayerLimits(opts.m, opts.n)) return cb('Incorrect m or n value'); |
|
|
if (!Wallet.verifyCopayerLimits(opts.m, opts.n)) return cb('Invalid m/n combination'); |
|
|
var network = opts.network || 'livenet'; |
|
|
var network = opts.network || 'livenet'; |
|
|
if (network != 'livenet' && network != 'testnet') return cb('Invalid network'); |
|
|
if (network != 'livenet' && network != 'testnet') return cb('Invalid network'); |
|
|
|
|
|
|
|
|