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

Fix: improve SignedTransaction type signature for dryrun and send_transaction #457

Merged
merged 2 commits into from Mar 28, 2023

Conversation

barnjamin
Copy link
Contributor

@barnjamin barnjamin commented Mar 24, 2023

Adds type parameter of GenericSignedTransaction to a couple places that had explicitly listed SignedTransaction types

Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

thanks for catching this - there is also a GenericSignedTransaction type defined at the end of this file that defines the union of signed transactions

@barnjamin barnjamin changed the title Fix: added missing union type for Multisig Fix: improve SignedTransaction type signature for dryrun and send_transaction Mar 27, 2023
@barnjamin barnjamin requested a review from algochoi March 27, 2023 18:44
@@ -307,13 +307,13 @@ def status_after_block(
return self.algod_request("GET", req, **kwargs)

def send_transaction(
self, txn: "transaction.Transaction", **kwargs: Any
self, txn: "transaction.GenericSignedTransaction", **kwargs: Any
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: do we still need the quotes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It failed CI the first time with a message about partially initialized module transaction, didnt dig deep but quoting fixed it

@bbroder-algo bbroder-algo merged commit 47d51e2 into develop Mar 28, 2023
3 checks passed
@barnjamin barnjamin deleted the dryrun-type-fix branch March 28, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants