Skip to content

Commit 815f14c

Browse files
committed
pre-fill superchain bridge address
1 parent 03f7d46 commit 815f14c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import {
6262
getModuleInstallParams,
6363
showPrimarySaleFieldset,
6464
showRoyaltyFieldset,
65+
showSuperchainBridgeFieldset,
6566
} from "./modular-contract-default-modules-fieldset";
6667
import { Param } from "./param";
6768
import { PlatformFeeFieldset } from "./platform-fee-fieldset";
@@ -294,6 +295,9 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
294295
// set connected wallet address as default "primarySaleRecipient"
295296
else if (showPrimarySaleFieldset(paramNames)) {
296297
returnVal.primarySaleRecipient = activeAccount.address;
298+
} else if (showSuperchainBridgeFieldset(paramNames)) {
299+
returnVal.superchainBridge =
300+
"0x4200000000000000000000000000000000000028";
297301
}
298302

299303
acc[mod.name] = returnVal;

apps/dashboard/src/components/contract-components/contract-deploy-form/modular-contract-default-modules-fieldset.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,7 @@ export function showPrimarySaleFieldset(paramNames: string[]) {
226226
function showSequentialTokenIdFieldset(paramNames: string[]) {
227227
return paramNames.length === 1 && paramNames.includes("startTokenId");
228228
}
229+
230+
export function showSuperchainBridgeFieldset(paramNames: string[]) {
231+
return paramNames.length === 1 && paramNames.includes("superchainBridge");
232+
}

0 commit comments

Comments
 (0)