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

00629 Show native EVM address when possible. #634

Merged
merged 12 commits into from
Jun 9, 2023

Conversation

svienot
Copy link
Collaborator

@svienot svienot commented Jun 9, 2023

Description:

This PR refactors the logic of EVMAddress and enhances it such that when the evmAddress argument is a long-zero address, we systematically fetch the corresponding Account information to retrieve its native EVM address in case it holds one.
The compact display now shows 1 byte (instead of 1 digit) before the ellipsis.

Related issue(s):

Related to #629.
It is not confirmed at this point that we want to duplicate the from property found in the Contract Result to show a Sender property in the top section. But in any case we want to make sure the from (and other EVM addresses) show the native EVM address when there is one.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
…n a long-zero form is provided.

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
…beginning.

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
@svienot svienot requested a review from ericleponner June 9, 2023 08:47
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
79.75% (+0.09% 🔼)
6052/7589
🟡 Branches
61.38% (+0.63% 🔼)
2508/4086
🟡 Functions
76.21% (+0.06% 🔼)
1169/1534
🟡 Lines
79.77% (+0.06% 🔼)
5721/7172
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / EthereumAddress.ts
100%
84.62% (-15.38% 🔻)
100% 100%

Test suite run success

327 tests passing in 74 suites.

Report generated by 🧪jest coverage report action from 771d8de

@svienot svienot changed the title 00629 sender evm address 00629 Show native EVM address when possible. Jun 9, 2023
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
@sonarcloud
Copy link

sonarcloud bot commented Jun 9, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.3% 0.3% Duplication

@ericleponner ericleponner merged commit 6a256ce into main Jun 9, 2023
@ericleponner ericleponner deleted the 00629-sender-evm-address branch June 9, 2023 16:33
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