Skip to content

Commit 2c0cfb9

Browse files
committed
fix(evm): use registered transceiver count in quoteDeliveryPrice
quoteDeliveryPrice passed enabledTransceivers.length to parseTransceiverInstructions, causing index out of bounds after removing a transceiver. Use registered count instead, matching the correct pattern in _transferEntryPoint.
1 parent e2e82c5 commit 2c0cfb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

evm/src/NttManager/ManagerBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ abstract contract ManagerBase is
108108

109109
TransceiverStructs.TransceiverInstruction[] memory instructions =
110110
TransceiverStructs.parseTransceiverInstructions(
111-
transceiverInstructions, enabledTransceivers.length
111+
transceiverInstructions, _getRegisteredTransceiversStorage().length
112112
);
113113

114114
return _quoteDeliveryPrice(recipientChain, instructions, enabledTransceivers);

0 commit comments

Comments
 (0)