@@ -256,7 +256,9 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
256
256
sourceChainId, sourceNttManagerAddress, message.id, message.sender, nativeTokenTransfer
257
257
);
258
258
259
- _mintOrUnlockToRecipient (digest, transferRecipient, nativeTransferAmount, false );
259
+ _mintOrUnlockToRecipient (
260
+ sourceChainId, digest, transferRecipient, nativeTransferAmount, false
261
+ );
260
262
}
261
263
262
264
/// @dev Override this function to process an additional payload on the NativeTokenTransfer
@@ -284,7 +286,7 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
284
286
bool isRateLimited = _isInboundAmountRateLimited (nativeTransferAmount, sourceChainId);
285
287
if (isRateLimited) {
286
288
// queue up the transfer
287
- _enqueueInboundTransfer (digest, nativeTransferAmount, transferRecipient);
289
+ _enqueueInboundTransfer (sourceChainId, digest, nativeTransferAmount, transferRecipient);
288
290
289
291
// end execution early
290
292
return true ;
@@ -317,7 +319,13 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
317
319
delete _getInboundQueueStorage ()[digest];
318
320
319
321
// run it through the mint/unlock logic
320
- _mintOrUnlockToRecipient (digest, queuedTransfer.recipient, queuedTransfer.amount, false );
322
+ _mintOrUnlockToRecipient (
323
+ queuedTransfer.sourceChain,
324
+ digest,
325
+ queuedTransfer.recipient,
326
+ queuedTransfer.amount,
327
+ false
328
+ );
321
329
}
322
330
323
331
/// @inheritdoc INttManager
@@ -370,7 +378,11 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
370
378
371
379
// return the queued funds to the sender
372
380
_mintOrUnlockToRecipient (
373
- bytes32 (uint256 (messageSequence)), msg .sender , queuedTransfer.amount, true
381
+ queuedTransfer.sourceChain,
382
+ bytes32 (uint256 (messageSequence)),
383
+ msg .sender ,
384
+ queuedTransfer.amount,
385
+ true
374
386
);
375
387
}
376
388
@@ -494,6 +506,7 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
494
506
495
507
// queue up and return
496
508
_enqueueOutboundTransfer (
509
+ chainId,
497
510
sequence,
498
511
trimmedAmount,
499
512
recipientChain,
@@ -611,6 +624,7 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
611
624
}
612
625
613
626
function _mintOrUnlockToRecipient (
627
+ uint16 sourceChain ,
614
628
bytes32 digest ,
615
629
address recipient ,
616
630
TrimmedAmount amount ,
@@ -626,7 +640,7 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
626
640
if (cancelled) {
627
641
emit OutboundTransferCancelled (uint256 (digest), recipient, untrimmedAmount);
628
642
} else {
629
- emit TransferRedeemed (digest);
643
+ emit TransferRedeemed (sourceChain, digest);
630
644
}
631
645
632
646
if (mode == Mode.LOCKING) {
0 commit comments