-
Notifications
You must be signed in to change notification settings - Fork 3
Adding kwargs and optional signing to create chain function #14
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
base: master
Are you sure you want to change the base?
Conversation
if signer_chain_id and not signer_private_key: | ||
raise Exception("signer_private_key is required when passing a signer_chain_id.") | ||
if not content: | ||
raise Exception("content is required.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the None-check on content
removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, that was an error on my part. I realize now that the None check for content should remain.
My rationale was that since it's a compulsory function arg, there would always be some content passed by the user. But in the case the user passes in "None" the None-check would handle that.
@Cahl-Dee this PR is with regards to the conversation we had and the issues I submitted.
Let me know your thoughts.