Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
utils.argsToArray(arguments).forEach(function (tim) {
tim.watchAddresses(constants.IDENTITY_PUBLISH_ADDRESS)
})
}
Driver.prototype._addresses = function () {
return [this.wallet.addressString, constants.IDENTITY_PUBLISH_ADDRESS];
};
Driver.prototype.publishIdentity = function (identity) {
identity = identity || this.identityJSON;
return this.publish({
msg: identity,
to: [{ fingerprint: constants.IDENTITY_PUBLISH_ADDRESS }]
});
};
Driver.prototype.publishIdentity = function (identity, toAddress) {
identity = identity || this.identityJSON
return this.publish({
msg: identity,
to: [{ fingerprint: toAddress || constants.IDENTITY_PUBLISH_ADDRESS }]
})
}
Driver.prototype._addresses = function () {
return [
this.wallet.addressString,
constants.IDENTITY_PUBLISH_ADDRESS
]
}
Driver.prototype.publishIdentity = function (identity) {
identity = identity || this.identityJSON
return this.publish({
msg: identity,
to: [{ fingerprint: constants.IDENTITY_PUBLISH_ADDRESS }]
})
}