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

Make stage & commit! args more explicit #343

Merged
merged 2 commits into from
Jan 19, 2023
Merged

Make stage & commit! args more explicit #343

merged 2 commits into from
Jan 19, 2023

Conversation

cap10morgan
Copy link
Contributor

This PR does two things:

  • Changes stage to only take db's as args (still w/ optional opts arg) b/c under the hood it's a fn of db's.
  • Changes commit! to only take a ledger and a db as args (i.e. it no longer supports just a ledger or a just a db; still w/ optional opts arg) b/c under the hood it's a fn of ledgers and db's.

The second commit updates all the tests for the new signatures.

Fixes #337

stage operates on a db, so this makes it only take a db

commit! operates on a ledger and a db, so this makes it only take a ledger and a db

Fixes #337
@cap10morgan cap10morgan requested a review from a team January 19, 2023 19:49
@cap10morgan
Copy link
Contributor Author

The tests all pass locally for me (since CI is having issues)

Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

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

🏖️

Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

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

🐻

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.

Cannot commit more than once on a memory conn
2 participants