Skip to content

Conversation

@Muhammad-Altabba
Copy link
Contributor

@Muhammad-Altabba Muhammad-Altabba commented Oct 27, 2025

Fixes #13

Changes

Added waitForUserOperationReceipt() calls in update() and delete() methods to ensure transactions are confirmed on-chain before proceeding with other operations.

This standardizes transaction handling across all CRUD operations to match the pattern already used in create().

This PR is based on #9 that is the best to be reviewed and merged first. As, this PR has just 2 commits. The first commit contains the changes of #9, and the second commit is the actual work that fixes #13

@Muhammad-Altabba
Copy link
Contributor Author

Hi @vijaykrishnavanshi and @nadeem-fileverse, when you have time please to look at this micro PR, and possibly the other small PRs, when possible.
Thanks,

…tions and unify the file name convention

- call `await this.smartAccountClient.waitForUserOperationReceipt({ hash })`; at `update` and `delete` similar to how it is called in create. This is to prevent race conditions, if more edit operations where performed immediately after update or delete.
- at `update` use the same naming convention used at `create` for file names (`${this.portal.portalAddress}/${this.namespace}/${filename}`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race Conditions in File Update and Delete Operations

1 participant