Skip to content

Commit

Permalink
Merge pull request #65 from guilyx/dev
Browse files Browse the repository at this point in the history
Mainnet Scroll
  • Loading branch information
guilyx committed Feb 2, 2024
2 parents 30f3da0 + 880bee4 commit 385434d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pages/AddressPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const AddressPage = () => {
availableExplorers.set('Mantle', mantleService);
availableExplorers.set('Zora', zoraService);
// availableExplorers.set('Nova', novaService);
availableExplorers.set('Scroll(T)', scrollService);
availableExplorers.set('Scroll', scrollService);
availableExplorers.set('Taiko(T)', taikoService);
// availableExplorers.set('Zeta(T)', zetaService);

Expand Down
12 changes: 4 additions & 8 deletions src/services/explorers/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@ import { ETH_TOKEN } from '../../common/common.ts';
import { Transaction } from './explorer.ts';
class ScrollExplorerService extends StandardExplorerService {
constructor() {
super(
'sepolia-blockscout.scroll.io',
'scroll',
'./chains/scroll.svg',
'https://sepolia-blockscout.scroll.io/',
ETH_TOKEN,
);
super('blockscout.scroll.io', 'scroll', './chains/scroll.svg', 'https://blockscout.scroll.io/', ETH_TOKEN);
}

needInternalTx(): boolean {
Expand All @@ -18,7 +12,9 @@ class ScrollExplorerService extends StandardExplorerService {

isFromBridge(tx: Transaction): boolean {
if (!tx.from) return false;
if (tx.from.toLowerCase() === '0x91e8addfe1358aca5314c644312d38237fc1101c'.toLowerCase()) {
if (tx.from.toLowerCase() === '0xE4eDb277e41dc89aB076a1F049f4a3EfA700bCE8'.toLowerCase()) {
return true;
} else if (tx.to.toLowerCase() === '0xE4eDb277e41dc89aB076a1F049f4a3EfA700bCE8'.toLowerCase()) {
return true;
}
return false;
Expand Down

0 comments on commit 385434d

Please sign in to comment.