ethereum / eth-account

Account abstraction library for web3.py
http://eth-account.readthedocs.io/
MIT License
258 stars 155 forks source link

allow accessList storageKeys to be bytes #290

Closed pacrob closed 1 month ago

pacrob commented 1 month ago

What was wrong?

web3 generates accessLists with storageKeys of type HexBytes, but eth-account only allows them to be ints or 0x-prefixed strings.

Closes #286

How was it fixed?

Set validation to allow them to be bytes. Might make more sense to stay stricter only allow HexBytes

Todo:

Cute Animal Picture

image

pacrob commented 1 month ago

Wrong direction on this. web3's AccessListEntry uses only HexStr, not HexBytes, so it shouldn't be returning those in the storageKeys