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

EIP712Message warning: Unexpected argument #28

Open
lijiachang opened this issue Jan 8, 2023 · 2 comments
Open

EIP712Message warning: Unexpected argument #28

lijiachang opened this issue Jan 8, 2023 · 2 comments

Comments

@lijiachang
Copy link

Environment information

  • OS: macOS
  • Python Version: 3.8.10
  • eip712 : 0.1.5 and 0.1.6

a simple test code:
class Test(EIP712Message):
name: string = "Frank 0x0016"
version: string = "1"
chainId: unit256 = 5
verifyingContract: address = "0x2a980B"

owner: address
amount: unit256
nonce: unit256

mail = Test(owner="0x7f62d", amount=120, nonce=2374)

pycharm warning: Snipaste_2023-01-08_19-58-40

@lijiachang
Copy link
Author

Although it works, this warning tip is confusing

@fubuloubu
Copy link
Member

Although it works, this warning tip is confusing

@lijiachang yes this is currently a problem from using data classy, I am looking to refactor this to a better library this week for a v0.2.0 release, so will check this UX as well

@fubuloubu fubuloubu added this to the v0.2.0 milestone Jan 8, 2023
@fubuloubu fubuloubu removed this from the v0.2.0 milestone Feb 18, 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

No branches or pull requests

2 participants