Skip to content

Commit

Permalink
fix: added delay for schema creation (#25)
Browse files Browse the repository at this point in the history
* added delay for schema creation

Signed-off-by: Tipu_Singh <[email protected]>

* fix: formatting

Signed-off-by: Tipu_Singh <[email protected]>

---------

Signed-off-by: Tipu_Singh <[email protected]>
  • Loading branch information
tipusinghaw authored Dec 9, 2024
1 parent c6da203 commit d88ba49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export class PolygonSchema {
if (!uploadSchemaDetails) {
throw new Error(`Error while uploading schema on file server!`)
}

// To change the nonce for next transaction
await new Promise((resolve) => setTimeout(resolve, 4000))
const addedResourcetxnReceipt = await this.didRegistry.addResource(
parsedDid.didAddress,
schemaId,
Expand Down

0 comments on commit d88ba49

Please sign in to comment.