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

Change the return type of sendTransaction #78

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

zivkovicmilos
Copy link
Member

Description

This PR changes the return type of Provider sendTransaction to return the transaction result it receives from the node.

The change was motivated to support return data from the transaction itself. As a result, this is propagated out to all method users, meaning the top level API will need to give users the support to send either a Sync or Commit transaction.

@zivkovicmilos zivkovicmilos self-assigned this Sep 7, 2023
Copy link
Member

@jinoosss jinoosss left a comment

Choose a reason for hiding this comment

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

@zivkovicmilos
Thanks for your work.

I left two comments.

I think it looks good with some improvements, I would appreciate your feedback.

src/provider/provider.ts Outdated Show resolved Hide resolved
src/wallet/wallet.ts Outdated Show resolved Hide resolved
Copy link
Member

@jinoosss jinoosss left a comment

Choose a reason for hiding this comment

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

Thank you for your work.

@zivkovicmilos zivkovicmilos merged commit 87de815 into main Sep 13, 2023
2 checks passed
@zivkovicmilos zivkovicmilos deleted the feature/change-send-api branch September 13, 2023 12:12
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.

3 participants