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

Refactor add_<declare/invoke/deploy_account>_transactions #414

Merged
merged 20 commits into from
Apr 10, 2024

Conversation

marioiordanov
Copy link
Contributor

@marioiordanov marioiordanov commented Apr 8, 2024

Usage related changes

closes #349

Development related changes

Refactor add_transaction methods. By combining handling cases of transaction versions
Replaced thread::sleep with Tokio::time::sleep in async methods
Added check for returning error when a query_only transaction is send in write endpoints

Checklist:

  • Checked the relevant parts of development docs
  • Applied formatting - ./scripts/format.sh
  • No linter errors - ./scripts/clippy_check.sh
  • No unused dependencies - ./scripts/check_unused_deps.sh
  • Performed code self-review
  • Rebased to the latest commit of the target branch (or merged it into my branch)
  • Updated the docs if needed, including the TODO section
  • Linked the issues which this PR resolves
  • Updated the tests if needed; all passing (execution info)

@marioiordanov marioiordanov marked this pull request as ready for review April 8, 2024 19:45
Copy link
Contributor

@FabijanC FabijanC left a comment

Choose a reason for hiding this comment

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

With only four lines added (+843 -839), the bug is gone. Looks good!

@marioiordanov marioiordanov merged commit 45646e7 into main Apr 10, 2024
1 check passed
@marioiordanov marioiordanov deleted the issue_349 branch April 10, 2024 06:53
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.

Transaction with query version executes successfully Instead of throwing error
2 participants