Merge pull request #9 from embark-framework/feature/add-ipns-interface

Add register function for IPNS
This commit is contained in:
Iuri Matias 2018-07-30 11:16:44 -04:00 committed by GitHub
commit 8c0492023b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -46,4 +46,11 @@ Names.registerSubDomain = function(name, address, callback) {
return this.currentNameSystems.registerSubDomain(name, address, callback);
};
Names.register = function(name, callback) {
if (!this.currentNameSystems) {
throw new Error(this.noProviderError);
}
return this.currentNameSystems.register(name, callback);
};
export default Names;