@@ -36,16 +36,16 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
3636
3737 const publishedContractsQuery = usePublishedContractsQuery (
3838 form . watch (
39- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
39+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
4040 ) ,
4141 ) ;
4242
4343 const allVersions = useAllVersions (
4444 form . watch (
45- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
45+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
4646 ) ,
4747 form . watch (
48- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
48+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
4949 ) ,
5050 ) ;
5151
@@ -57,7 +57,7 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
5757 isRequired = { true }
5858 errorMessage = {
5959 form . getFieldState (
60- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
60+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
6161 form . formState ,
6262 ) . error ?. message
6363 }
@@ -66,7 +66,7 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
6666 placeholder = "Address or ENS"
6767 className = "truncate"
6868 { ...form . register (
69- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
69+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .publisherAddress` ,
7070 ) }
7171 />
7272 </ FormFieldSetup >
@@ -90,11 +90,11 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
9090 < Select
9191 disabled = { ( publishedContractsQuery ?. data || [ ] ) . length === 0 }
9292 { ...form . register (
93- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
93+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
9494 ) }
9595 onValueChange = { ( v ) => {
9696 form . setValue (
97- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
97+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .contractId` ,
9898 v ,
9999 ) ;
100100 } }
@@ -141,11 +141,11 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
141141 < Select
142142 disabled = { ! allVersions . data }
143143 { ...form . register (
144- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .version` ,
144+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .version` ,
145145 ) }
146146 onValueChange = { ( v ) => {
147147 form . setValue (
148- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .version` ,
148+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .version` ,
149149 v === "latest" ? "" : v ,
150150 ) ;
151151 } }
@@ -176,7 +176,7 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
176176 label = "Salt"
177177 errorMessage = {
178178 form . getFieldState (
179- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .salt` ,
179+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .salt` ,
180180 form . formState ,
181181 ) . error ?. message
182182 }
@@ -185,7 +185,7 @@ export const RefBytesContractInput: React.FC<RefBytesContractInputProps> = ({
185185 className = "truncate"
186186 placeholder = "Salt (optional)"
187187 { ...form . register (
188- `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.decodedBytes .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .salt` ,
188+ `constructorParams.${ param . name ? param . name : "*" } .dynamicValue.paramsToEncode .${ setIndex } .${ paramIndex } .dynamicValue.refContracts.${ index } .salt` ,
189189 ) }
190190 />
191191 </ FormFieldSetup >
0 commit comments