Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JaunePomme committed Sep 27, 2024
1 parent 384deef commit a38f270
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
10 changes: 5 additions & 5 deletions src/components/icons/Identicon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// import jazzicon from '@metamask/jazzicon';
import { memo } from 'react';

import { isValidAddressEvm, normalizeAddressEvm } from '@hyperlane-xyz/utils';
import { isValidAddressEvm } from '@hyperlane-xyz/utils';
import { Circle } from '@hyperlane-xyz/widgets';

type Props = {
Expand All @@ -10,10 +10,10 @@ type Props = {
};

// This should match metamask: https://github.com/MetaMask/metamask-extension/blob/master/ui/helpers/utils/icon-factory.js#L84
function addressToSeed(address: string) {
const addrStub = normalizeAddressEvm(address).slice(2, 10);
return parseInt(addrStub, 16);
}
// function addressToSeed(address: string) {
// const addrStub = normalizeAddressEvm(address).slice(2, 10);
// return parseInt(addrStub, 16);
// }

// TODO move to widgets lib
function _Identicon({ address, size: _size }: Props) {
Expand Down
17 changes: 0 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4070,7 +4070,6 @@ __metadata:
"@hyperlane-xyz/utils": "npm:5.3.0"
"@hyperlane-xyz/widgets": "npm:5.3.0"
"@interchain-ui/react": "npm:^1.23.28"
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6"
"@metamask/post-message-stream": "npm:6.1.2"
"@metamask/providers": "npm:10.2.1"
"@next/bundle-analyzer": "npm:^14.2.5"
Expand Down Expand Up @@ -4880,15 +4879,6 @@ __metadata:
languageName: node
linkType: hard

"@metamask/jazzicon@https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6":
version: 2.1.0
resolution: "@metamask/jazzicon@git+ssh://[email protected]/jmrossy/jazzicon.git#commit=7a8df28974b4e81129bfbe3cab76308b889032a6"
dependencies:
mersenne-twister: "npm:^1.1.0"
checksum: 5e56251b375eade58294334783fb37a15e8fd48d792f6dc93f7247b8897541324f9cf2d3f1d9b1cffdac1d932a8bc48a89dee7cdbd6e4a312ca2ff85df90131b
languageName: node
linkType: hard

"@metamask/json-rpc-engine@npm:^7.0.0":
version: 7.3.3
resolution: "@metamask/json-rpc-engine@npm:7.3.3"
Expand Down Expand Up @@ -17693,13 +17683,6 @@ __metadata:
languageName: node
linkType: hard

"mersenne-twister@npm:^1.1.0":
version: 1.1.0
resolution: "mersenne-twister@npm:1.1.0"
checksum: 1123526199091097102f2f91639ad7d5b3df4b098de9a4a72c835920e11ef0ce08e25737d5af1d363325a60da8804365eae8a41e03b7a46a1acc22e18fa8f261
languageName: node
linkType: hard

"methods@npm:~1.1.2":
version: 1.1.2
resolution: "methods@npm:1.1.2"
Expand Down

0 comments on commit a38f270

Please sign in to comment.