Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update EIP-5792 support, fixing pending status #615

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Conversation

iamacook
Copy link
Member

Summary

The EIP-5792 spec. has been adjusted, and it is not possible to get the PENDING status for a transaction that is queued off-chain.

This updates the implementation according to the current spec.:

  • Changing success to status
  • Adds chainId
  • Removes blockTimestamp

Should a transaction not have a txHash, ergo being queued, it returns a PENDING status for it.

Changes

  • Change success to status
  • Add chainId
  • Remove blockTimestamp
  • Return PENDING status for queued transactions

@iamacook iamacook self-assigned this Nov 25, 2024
Copy link

changeset-bot bot commented Nov 25, 2024

🦋 Changeset detected

Latest commit: 30ec4d5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@safe-global/safe-apps-provider Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

@chybisov chybisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@iamacook iamacook requested a review from tmjssz November 29, 2024 11:18
@iamacook iamacook merged commit 2081b24 into main Dec 2, 2024
3 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants