-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[Starknet] Allow contract addresses starting with '0x0' #1141
Comments
Hi @m-kus I would like to take this issue |
Happy to work on that one! |
Hey @baitcode! Assigned:) |
Added function to truncate addresses during matching so that 0x0 addresses could be matched correctly. Small fix in starknet demo config Fixes dipdup-io#1141
@m-kus @dmirgaleev I decided not to change I added truncation on both addresses (one received from datasource and other from config) inside matching procedure (which might slow matching down, not cool I know), but that allows achieve the desired result without changing stored data. Let me know if that assumption was wrong. Also while doing this I discovered couple of things, that might be important, but also might be not:
I understand that |
It might be more user friendly to allow contract addresses that are left padded with zero (that's what block explorers provide).
ctx.add_contract
should ideally also account for thatThe text was updated successfully, but these errors were encountered: