Skip to content

Conversation

gabrielfior
Copy link
Collaborator

-> Created new streamlit custom component
-> Uploaded to testpypi (https://test.pypi.org/project/python-web3-wallet/)
-> Will upload to Pypi once this gets merged

image

image

@gabrielfior gabrielfior requested a review from kongzii December 13, 2024 19:57
LICENSE Outdated
MIT License

Copyright (c) 2024 Gnosis
Copyright (c) 2018-2021 Streamlit Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is that correct?

# `declare_component` and call it done. The wrapper allows us to customize
# our component's API: we can pre-process its input args, post-process its
# output value, and add a docstring for users.
def my_component(recipient: str, amount_in_ether: str, key=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't the value that should be sent in the data missing here?


from python_web3_wallet import my_component

c = my_component(recipient="0x...", amount_in_ether="0.01") # Displays RainbowKit wallet
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't data required now as well?

@gabrielfior gabrielfior merged commit 0145778 into main Dec 16, 2024
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.

2 participants