Skip to content

Commit

Permalink
Updating did identifier and typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Sep 26, 2023
1 parent c75d68f commit 3693d74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Create a service for a `did:bnb` by using the following code snippet:
```typescript
const address = "0x88a05b4370BbB90c9F3EEa72A65c77131a7bc18d";
const provider = getDefaultProvider(process.env.RPC_URL); // e.g. https://bsc-testnet.publicnode.com
const chainEnv: ChainEnviroment = 'tesnet';
const chainEnv: ChainEnviroment = 'testnet';
const didRegistry = new DidRegistry(provider, address, {chainEnvironment: chainEnv});
// ... use didRegistry client
const randomDid = DidIdentifier.create(
Expand All @@ -60,7 +60,7 @@ didRegistry.resolve(randomDid)
const address = "0x88a05b4370BbB90c9F3EEa72A65c77131a7bc18d";
const provider = getDefaultProvider(process.env.RPC_URL); // e.g. https://bsc-testnet.publicnode.com
const randomWallet = Wallet.createRandom().connect(provider);
const chainEnv: ChainEnviroment = 'tesnet';
const chainEnv: ChainEnviroment = 'testnet';
const didRegistry = new DidRegistry(randomWallet, address, {chainEnvironment: chainEnv});
// ... use didRegistry client
// not passing a DID will resolve the DID of the wallet address
Expand Down Expand Up @@ -157,7 +157,7 @@ that specific VM).

### Add External Controller (non-did:bnb DID)
```typescript
const externalController = `did:bnb:${Wallet.createRandom().address}`;
const externalController = `did:sol:${Wallet.createRandom().address}`;

const tx: ContractTransaction = await didRegistry
.addExternalController(externalController);
Expand Down

0 comments on commit 3693d74

Please sign in to comment.