@@ -540,8 +540,9 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
540
540
// push it on the stack again to avoid a stack too deep error
541
541
uint64 seq = sequence;
542
542
543
- TransceiverStructs.NativeTokenTransfer memory ntt =
544
- _prepareNativeTokenTransfer (amount, token, recipient, recipientChain, seq, sender);
543
+ TransceiverStructs.NativeTokenTransfer memory ntt = _prepareNativeTokenTransfer (
544
+ amount, recipient, recipientChain, seq, sender, refundAddress
545
+ );
545
546
546
547
// construct the NttManagerMessage payload
547
548
bytes memory encodedNttManagerPayload = TransceiverStructs.encodeNttManagerMessage (
@@ -589,20 +590,20 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
589
590
/// @dev Override this function to provide an additional payload on the NativeTokenTransfer
590
591
/// For integrator flexibility, this function is *not* marked pure or view
591
592
/// @param amount TrimmedAmount of the transfer
592
- /// @param token Address of the token that this NTT Manager is tied to
593
593
/// @param recipient The recipient address
594
594
/// @param recipientChain The Wormhole chain ID for the destination
595
595
/// @param - The sequence number for the manager message (unused, provided for overriding integrators)
596
596
/// @param - The sender of the funds (unused, provided for overriding integrators). If releasing
597
+ /// @param - The address on the destination chain to which the refund of unused gas will be paid
597
598
/// queued transfers, when rate limiting is used, then this value could be different from msg.sender.
598
599
/// @return - The TransceiverStructs.NativeTokenTransfer struct
599
600
function _prepareNativeTokenTransfer (
600
601
TrimmedAmount amount ,
601
- address token ,
602
602
bytes32 recipient ,
603
603
uint16 recipientChain ,
604
604
uint64 , // sequence
605
- address // sender
605
+ address , // sender
606
+ bytes32 // refundAddress
606
607
) internal virtual returns (TransceiverStructs.NativeTokenTransfer memory ) {
607
608
return TransceiverStructs.NativeTokenTransfer (
608
609
amount, toWormholeFormat (token), recipient, recipientChain, ""
0 commit comments