Skip to content

Commit

Permalink
fix: pass rpcUrl to binding and lock
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Jul 19, 2024
1 parent 8977cc2 commit 03373e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export class NostrBindingSDK {

constructor(config?: SDKConfig) {
if (config) {
this.binding = new NostrBinding(config.NOSTR_BINDING, config.prefix);
this.lock = new NostrLock(config.NOSTR_LOCK, config.prefix);
this.binding = new NostrBinding(config.NOSTR_BINDING, config.prefix, config.rpcUrl);
this.lock = new NostrLock(config.NOSTR_LOCK, config.prefix, config.rpcUrl);
} else {
this.binding = new NostrBinding();
this.lock = new NostrLock();
Expand Down

0 comments on commit 03373e4

Please sign in to comment.