@@ -137,7 +137,9 @@ contract ZetaConnectorZEVM {
137137 */
138138 function send (ZetaInterfaces.SendInput calldata input ) external {
139139 // Transfer wzeta to "fungible" module, which will be burnt by the protocol post processing via hooks.
140- if (! IWETH9 (wzeta).transferFrom (msg .sender , address (this ), input.zetaValueAndGas)) revert WZETATransferFailed ();
140+ if (! IWETH9 (wzeta).transferFrom (msg .sender , address (this ), input.zetaValueAndGas)) {
141+ revert WZETATransferFailed ();
142+ }
141143 IWETH9 (wzeta).withdraw (input.zetaValueAndGas);
142144 (bool sent ,) = FUNGIBLE_MODULE_ADDRESS.call { value: input.zetaValueAndGas }("" );
143145 if (! sent) revert FailedZetaSent ();
@@ -176,9 +178,12 @@ contract ZetaConnectorZEVM {
176178 if (! IWETH9 (wzeta).transferFrom (address (this ), destinationAddress, zetaValue)) revert WZETATransferFailed ();
177179
178180 if (message.length > 0 ) {
179- ZetaReceiver (destinationAddress).onZetaMessage (
180- ZetaInterfaces.ZetaMessage (zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message)
181- );
181+ ZetaReceiver (destinationAddress)
182+ .onZetaMessage (
183+ ZetaInterfaces.ZetaMessage (
184+ zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message
185+ )
186+ );
182187 }
183188
184189 emit ZetaReceived (zetaTxSenderAddress, sourceChainId, destinationAddress, zetaValue, message, internalSendHash);
@@ -209,16 +214,17 @@ contract ZetaConnectorZEVM {
209214 }
210215
211216 if (message.length > 0 ) {
212- ZetaReceiver (zetaTxSenderAddress).onZetaRevert (
213- ZetaInterfaces.ZetaRevert (
214- zetaTxSenderAddress,
215- sourceChainId,
216- destinationAddress,
217- destinationChainId,
218- remainingZetaValue,
219- message
220- )
221- );
217+ ZetaReceiver (zetaTxSenderAddress)
218+ .onZetaRevert (
219+ ZetaInterfaces.ZetaRevert (
220+ zetaTxSenderAddress,
221+ sourceChainId,
222+ destinationAddress,
223+ destinationChainId,
224+ remainingZetaValue,
225+ message
226+ )
227+ );
222228 }
223229
224230 emit ZetaReverted (
0 commit comments