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

[DX-2863] feat: add send transaction with confirmation #194

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Conversation

nattb8
Copy link
Collaborator

@nattb8 nattb8 commented Jun 3, 2024

Summary

In order to obtain the final status of a transaction, developers currently need to continuously check the ZkEvmGetTransactionReceipt until they receive a response. We have added a new function called ZkEvmSendTransactionWithConfirmation, which not only sends the transaction but also waits for it to be included in the chain. This allows developers to obtain the final status of a transaction in one function call.

Game bridge built from ts-immutable-sdk 9579ae4.

Customer Impact

Customers can now use ZkEvmSendTransactionWithConfirmation to both send a transaction and obtain its final status in a single function call, removing the need for ZkEvmGetTransactionReceipt.

Other things to consider:

  • Sample app is updated with new SDK changes
  • Updated public documentation with new SDK changes (Immutable X and Immutable zkEVM)
  • Sample game is updated with new SDK changes

@nattb8 nattb8 requested a review from a team as a code owner June 3, 2024 04:37
@nattb8 nattb8 merged commit 0e5a0a9 into main Jun 3, 2024
13 checks passed
@nattb8 nattb8 deleted the feat/tx-wait branch June 3, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants