storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

Make `service` parameter optional in `publish` and `resolve` #21

Closed adamalton closed 2 years ago

adamalton commented 2 years ago

Currently, in the publish and resolve functions, we require a service parameter. But that service can just the default constructor parameters of the W3NameService class, so we could just provide that as the default and not require the service parameter to these two functions.

When we do this, we should also update the code in client/example/index.js.

And once we've done it, it partially unlocks #1683.

francois-potato commented 2 years ago

Done in #22