Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {AssetRouterBase} from "../asset-router/AssetRouterBase.sol";
import {INativeTokenVaultBase} from "../ntv/INativeTokenVaultBase.sol";
import {
ChainIdNotRegistered,
InvalidBundleIdentifier,
InvalidInteropCalldata,
InvalidMessage,
ReconstructionMismatch,
Expand Down Expand Up @@ -496,8 +497,7 @@ contract GWAssetTracker is AssetTrackerBase, IGWAssetTracker {
bytes calldata _message
) internal returns (uint256 chargeableCallCount) {
if (_message[0] != BUNDLE_IDENTIFIER) {
// This should not be possible in V31. In V31 this will be a trigger.
return 0;
revert InvalidBundleIdentifier();
}

InteropBundle memory interopBundle = abi.decode(_message[1:], (InteropBundle));
Expand Down
1 change: 1 addition & 0 deletions l1-contracts/contracts/common/L1ContractErrors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ error IncorrectTokenAddressFromNTV(bytes32 assetId, address tokenAddress);
error InsufficientFunds(uint256 required, uint256 actual);
// 0x9bf8b9aa
error InvalidBatchNumber(uint256 provided, uint256 expected);
error InvalidBundleIdentifier();
// 0xd438e1fa
error InvalidBlockRange(uint64 batchNumber, uint64 from, uint64 to);
// 0xcbd9d2e0
Expand Down