Skip to content

Commit 198df09

Browse files
committed
compare addresses lower case
1 parent 29eaeca commit 198df09

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/data-table.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ export function DataTable({
182182
deployStatusModal.setViewContractLink("");
183183
deployStatusModal.open(steps);
184184

185-
const isCrosschain = !!modulesMetadata?.find(
186-
(m) => m.name === "SuperChainInterop",
187-
);
188-
189185
let crosschainContractAddress: string | undefined;
190186
if (initCode && isDirectDeploy) {
191187
const tx = prepareTransaction({
@@ -229,7 +225,7 @@ export function DataTable({
229225
chain,
230226
client,
231227
});
232-
if (isCrosschain && modulesMetadata) {
228+
if (modulesMetadata) {
233229
for (const m of modulesMetadata) {
234230
await getOrDeployInfraForPublishedContract({
235231
chain,

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/page.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ export default async function Page(props: {
9292

9393
initCode = creationTx.input;
9494
isDirectDeploy =
95-
creationTx.to === "0x4e59b44847b379578588920cA78FbF26c0B4956C";
95+
creationTx.to?.toLowerCase() ===
96+
"0x4e59b44847b379578588920cA78FbF26c0B4956C".toLowerCase();
9697
isProxyDeploy =
9798
!!twCloneFactoryContract &&
98-
creationTx.to === twCloneFactoryContract?.address;
99+
creationTx.to?.toLowerCase() ===
100+
twCloneFactoryContract?.address.toLowerCase();
99101
}
100102
} catch (e) {
101103
console.debug(e);
@@ -117,7 +119,10 @@ export default async function Page(props: {
117119
events: [ProxyDeployedEvent],
118120
blockRange: 123456n,
119121
});
120-
const event = events.find((e) => e.args.proxy === params.contractAddress);
122+
const event = events.find(
123+
(e) =>
124+
e.args.proxy.toLowerCase() === params.contractAddress.toLowerCase(),
125+
);
121126

122127
initializeData = event?.args.data;
123128
inputSalt = event?.args.inputSalt;

0 commit comments

Comments
 (0)