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

fix(mapper): treat zeroPaddedAddress() as a transformation #175

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

aspiers
Copy link
Member

@aspiers aspiers commented Feb 27, 2024

zeroPaddedAddress() was being treated as an abbreviator, but there is no guesswork involved as it left-pads a full address. So split this out into a new transformers.ts file, and substitute zero-padded addresses with the normal format not the guess format.

Also substitute lowercase zero-padded addresses, as seen on the likes of polygonscan in the Events tab of smart contract pages.

zeroPaddedAddress() was being treated as an abbreviator, but there is
no guesswork involved as it left-pads a full address.  So split this
out into a new transformers.ts file, and substitute zero-padded
addresses with the normal format not the guess format.

Also substitute lowercase zero-padded addresses, as seen on the likes
of polygonscan in the Events tab of smart contract pages.
@aspiers aspiers merged commit 464167f into main Feb 27, 2024
5 checks passed
@aspiers aspiers deleted the transformers branch February 27, 2024 22:23
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