Skip to content

Commit

Permalink
Merge pull request #193 from argentlabs/fix/iframe-sepolia-fix
Browse files Browse the repository at this point in the history
fix: chain for sepolia iframes
  • Loading branch information
bluecco authored Feb 27, 2025
2 parents 016d186 + db8b1af commit 5225838
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/helpers/mapTargetUrlToNetworkId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ export function mapTargetUrlToNetworkId(target: string): constants.NetworkName {
if (origin.includes("hydrogen")) {
return Network.SN_SEPOLIA
}
if (origin.includes("sepolia-web.staging")) {
return Network.SN_SEPOLIA
}
if (origin.includes("staging")) {
return Network.SN_MAIN
}
if (origin.includes("dev")) {
return Network.SN_SEPOLIA
}
if (origin.includes("sepolia-web.argent.xyz")) {
return Network.SN_SEPOLIA
}
if (origin.includes("argent.xyz")) {
return Network.SN_MAIN
}
Expand Down

0 comments on commit 5225838

Please sign in to comment.