Skip to content

Commit

Permalink
Merge pull request scaffold-eth#605 from dvgui/better-wallet
Browse files Browse the repository at this point in the history
display address in standarized hidden format
  • Loading branch information
codenamejason committed Dec 10, 2021
2 parents 5474735 + e705e3a commit b6c3343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-app/src/components/Address.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Address(props) {
const ensSplit = ens && ens.split(".");
const validEnsCheck = ensSplit && ensSplit[ensSplit.length - 1] === "eth";
const etherscanLink = blockExplorerLink(address, props.blockExplorer);
let displayAddress = address?.substr(0, 6);
let displayAddress = address?.substr(0, 5) + "..." + address?.substr(-4);

if (validEnsCheck) {
displayAddress = ens;
Expand Down

0 comments on commit b6c3343

Please sign in to comment.