@@ -59,8 +59,8 @@ const relay = async (chainId: number, nonce: number, network: Network) => {
5959 getMessageDataToRelay ( chainId , veaInboxAddress , nonce ) ,
6060 ] ) ;
6161 if ( ! messageData ) throw new DataError ( "relay message data" ) ;
62- const [ to , data ] = messageData ;
63- const txn = await veaOutbox . sendMessage ( proof , nonce , to , data ) ;
62+ const [ to , from , data ] = messageData ;
63+ const txn = await veaOutbox . sendMessage ( proof , nonce , to , from , data ) ;
6464 const receipt = await txn . wait ( ) ;
6565 return receipt ;
6666} ;
@@ -127,10 +127,10 @@ const relayBatch = async ({
127127 fetchProofAtCount ( chainId , nonce , count , veaInboxAddress ) ,
128128 fetchMessageDataToRelay ( chainId , veaInboxAddress , nonce ) ,
129129 ] ) ;
130- const [ to , data ] = messageData ;
130+ const [ to , from , data ] = messageData ;
131131 try {
132- await veaOutbox . sendMessage . staticCall ( proof , nonce , to , data ) ;
133- const callData = veaOutbox . interface . encodeFunctionData ( "sendMessage" , [ proof , nonce , to , data ] ) ;
132+ await veaOutbox . sendMessage . staticCall ( proof , nonce , to , from , data ) ;
133+ const callData = veaOutbox . interface . encodeFunctionData ( "sendMessage" , [ proof , nonce , to , from , data ] ) ;
134134 datas . push ( callData ) ;
135135 targets . push ( veaOutboxAddress ) ;
136136 values . push ( 0 ) ;
@@ -142,6 +142,7 @@ const relayBatch = async ({
142142 }
143143 }
144144 if ( batchMessages > 0 ) {
145+ console . log ( targets , datas ) ;
145146 const gasLimit = await batcher . batchSend . estimateGas ( targets , values , datas ) ;
146147 const tx = await batcher . batchSend ( targets , values , datas , { gasLimit } ) ;
147148 const receipt = await tx . wait ( ) ;
@@ -193,9 +194,9 @@ const relayAllFrom = async (
193194 getProofAtCount ( chainId , x , count , veaInboxAddress ) ,
194195 getMessageDataToRelay ( chainId , veaInboxAddress , x ) ,
195196 ] ) ;
196- const [ to , data ] = messageData ;
197+ const [ to , from , data ] = messageData ;
197198
198- const callData = veaOutbox . interface . encodeFunctionData ( "sendMessage" , [ proof , x , to , data ] ) ;
199+ const callData = veaOutbox . interface . encodeFunctionData ( "sendMessage" , [ proof , x , to , from , data ] ) ;
199200 datas . push ( callData ) ;
200201 targets . push ( veaContracts [ network ] . veaOutbox . address ) ;
201202 values . push ( 0 ) ;
0 commit comments