settings: added test for new secret scheme

This commit is contained in:
Manuel Araoz 2014-09-09 17:08:59 -07:00
commit 7159cdb712
4 changed files with 15 additions and 4 deletions

View file

@ -364,7 +364,7 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
self.network.greet(decodedSecret.pubKey, opts.secretNumber);
self.network.on('data', function(sender, data) {
if (data.type === 'walletId') {
if (data.networkName !== self.networkName) {
if (data.networkName !== decodedSecret.networkName) {
return cb('badNetwork');
}