Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Oct 18, 2024
1 parent a49db12 commit c6be275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,11 @@ export default class DockInternalTrustRegistryModule extends createInternalDockM
* @returns {Promise}
*/
async getActorDidAndNonce(actorDid, nonce) {
const hexDID = DockDidOrDidMethodKey.from(actorDid);
const actor = DockDidOrDidMethodKey.from(actorDid);
const lastNonce = nonce
?? (await this.apiProvider.withDidNonce((didNonce) => didNonce.inc()));
return [hexDID, lastNonce];
?? (await this.apiProvider.withDidNonce(actor, (didNonce) => didNonce.inc()));

return [actor, lastNonce];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class DockTrustRegistryModule extends injectDock(
info.name,
info.govFramework,
didKeypair,
nonce,
nonce.inc(),
);

const setSchemas = await this.dockOnly.setSchemasMetadataTx(
Expand Down

0 comments on commit c6be275

Please sign in to comment.