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

bugfix: Uniswap constructor and "check_approval" decorator throwing whenever passing kwargs. Issue #218 #361

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RoscoeTheDog
Copy link

Asked the chatbot to come up with a solution. Seems to work fine. I'm not too familiar with all the internal relationships, so someone should review before merging. 👍

When creating a wrapper class for this API, I encountered issues passing down a flattened dict of kwargs to the constructor of Uniswap() class due to it not having *args, **kwargs in it's constructors signature. Any extra arguments that were not explicitily in the constructors signature would throw an error, which makes it less friendly for other software systems to wrap it's code with.

Simply adding *args and **kwargs to the constructor fixes this issue and doesn't intrtoduce any negative effects.
@RoscoeTheDog
Copy link
Author

Also added *args, **kwargs to Uniswap constructor

When creating a wrapper class for this API, I encountered issues passing down a flattened dict of kwargs to the constructor of Uniswap() class due to it not having *args, **kwargs in it's constructors signature. Any extra arguments that were not explicitily in the constructors signature would throw an error, which makes it less friendly for other software systems to wrap it's code with.

Simply adding *args and **kwargs to the constructor fixes this issue and doesn't intrtoduce any negative effects.

@RoscoeTheDog RoscoeTheDog changed the title bugfix: "check_approval" decorator throwing when using kwargs. Issue #218 bugfix: Uniswap constructor and "check_approval" decorator throwing whenever passing kwargs. Issue #218 Dec 24, 2023
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.

None yet

1 participant