File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export function ProxyProfile({ wallet: walletRaw }: { wallet: string }) {
165165 </ div >
166166 ) ;
167167
168- const provider = useAnchorProvider ( )
168+ const provider = useAnchorProvider ( ) ;
169169
170170 return (
171171 < ContentSection className = "flex-1 py-8 max-md:py-0 max-md:!px-0" >
@@ -214,9 +214,13 @@ export function ProxyProfile({ wallet: walletRaw }: { wallet: string }) {
214214 onSubmit = { ( args ) => {
215215 return assignProxies ( {
216216 ...args ,
217- onInstructions : onInstructions ( provider , {
218- useFirstEstimateForAll : true ,
219- } ) ,
217+ onInstructions : async ( instructionArrays ) => {
218+ for ( const instructions of instructionArrays ) {
219+ await onInstructions ( provider , {
220+ useFirstEstimateForAll : true ,
221+ } ) ( instructions ) ;
222+ }
223+ } ,
220224 } ) ;
221225 } }
222226 wallet = { wallet }
@@ -312,9 +316,13 @@ export function ProxyProfile({ wallet: walletRaw }: { wallet: string }) {
312316 onSubmit = { ( args ) => {
313317 return assignProxies ( {
314318 ...args ,
315- onInstructions : onInstructions ( provider , {
316- useFirstEstimateForAll : true ,
317- } ) ,
319+ onInstructions : async ( instructionArrays ) => {
320+ for ( const instructions of instructionArrays ) {
321+ await onInstructions ( provider , {
322+ useFirstEstimateForAll : true ,
323+ } ) ( instructions ) ;
324+ }
325+ } ,
318326 } ) ;
319327 } }
320328 wallet = { wallet }
You can’t perform that action at this time.
0 commit comments