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

Add support for calling the two-arg variant of runTransaction #38

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

darinf
Copy link

@darinf darinf commented Feb 26, 2024

When given a first argument closure that returns a non-optional type, the compiler would give up trying to match against the two-arg variant and instead complain about the first argument missing a with: label and not being a TransactionOption type.

A fix for this is to provide optional and non-optional variants of the two arg override.

When given a first argument closure that returns a non-optional type,
the compiler would give up trying to match against the two-arg variant
and instead complain about the first argument missing a `with:` label
and not being a `TransactionOption` type.

A fix for this is to provide optional and non-optional variants of
the two arg override.
Copy link

@brianmichel brianmichel left a comment

Choose a reason for hiding this comment

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

Interesting issue, thanks for the fix Darin!

@darinf darinf merged commit 54200eb into main Feb 26, 2024
1 check passed
@darinf darinf deleted the darin/two-arg-run-transaction branch February 26, 2024 23:28
@fiedukow
Copy link

Thank you!

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