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

Normalize address's for transactions #597

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Normalize address's for transactions #597

merged 1 commit into from
Aug 28, 2023

Conversation

kent-white
Copy link
Collaborator

See the amounts shown for this bad address

http://localhost:3000/account/0x0628e72def46bc247908f0b06367bfbf744a50328e429a97632941035ef50a63/transactions?network=mainnet

Future Work:
We can do this better to normalize coming from the node, but I didn't want to try and figure that out today without more testing, so this is a bandaid solution with a little bit of cleanup

@netlify
Copy link

netlify bot commented Aug 26, 2023

Deploy Preview for aptos-explorer ready!

Name Link
🔨 Latest commit 374dcc1
🔍 Latest deploy log https://app.netlify.com/sites/aptos-explorer/deploys/64e9466d438b26000826f749
😎 Deploy Preview https://deploy-preview-597--aptos-explorer.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -105,7 +106,7 @@ function getBalanceMap(transaction: Types.Transaction) {
},
event: Types.Event,
) => {
const addr = event.guid.account_address;
Copy link

Choose a reason for hiding this comment

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

So this is the only functional change, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

correct

Copy link

@bchocho bchocho left a comment

Choose a reason for hiding this comment

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

LGTM

@kent-white kent-white merged commit 3a8c5f4 into main Aug 28, 2023
8 checks passed
@kent-white kent-white deleted the normalize branch August 28, 2023 17:58
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