You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show Deterministic Deploy warning banner if constructor params exist (#4717)
FIXES DASH-257
<!-- start pr-codex -->
---
## PR-Codex overview
The focus of this PR is to enhance the Custom Contract Form in the dashboard by adding a warning for deterministic deployment.
### Detailed summary
- Added `CircleAlertIcon` and warning message for deterministic deployment
- Updated the layout of the deterministic deploy checkbox and warning display
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
<ToolTipLabellabel="Allows having the same contract address on multiple chains. You can control the address by specifying a salt for create2 deployment below">
849
-
<divclassName="inline-flex gap-1.5 items-center">
850
-
<spanclassName="tex-sm">
851
-
Deploy at a deterministic address
852
-
</span>
853
-
<FiHelpCircleclassName="size-4"/>
854
-
</div>
855
-
</ToolTipLabel>
856
-
</CheckboxWithLabel>
844
+
845
+
<divclassName="flex flex-col gap-3">
846
+
<CheckboxWithLabel>
847
+
<Checkbox
848
+
{...form.register("deployDeterministic")}
849
+
checked={form.watch("deployDeterministic")}
850
+
onCheckedChange={(c)=>
851
+
form.setValue("deployDeterministic",!!c)
852
+
}
853
+
/>
854
+
<ToolTipLabellabel="Allows having the same contract address on multiple chains. You can control the address by specifying a salt for create2 deployment below">
855
+
<divclassName="inline-flex gap-1.5 items-center">
856
+
<spanclassName="tex-sm">
857
+
Deploy at a deterministic address
858
+
</span>
859
+
<FiHelpCircleclassName="size-4"/>
860
+
</div>
861
+
</ToolTipLabel>
862
+
</CheckboxWithLabel>
863
+
864
+
{shouldShowDeterministicDeployWarning&&(
865
+
<Alertvariant="warning">
866
+
<CircleAlertIconclassName="size-5"/>
867
+
<AlertTitle>
868
+
Deterministic deployment would only result in the same
869
+
contract address if you use the same contructor params
0 commit comments