Skip to content

Commit

Permalink
fix: use rpcUrl in controller config (decentralized-identity#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Apr 22, 2021
1 parent 59d008c commit 5302536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class EthrDidController {
// initialize contract connection
if (contract) {
this.contract = contract
} else if (provider || signer?.provider) {
} else if (provider || signer?.provider || rpcUrl) {
const prov = provider || signer?.provider
this.contract = getContractForNetwork({ name: net, provider: prov, registry, rpcUrl })
} else {
Expand Down

0 comments on commit 5302536

Please sign in to comment.