Skip to content

Commit f7c7f72

Browse files
committed
evm: Fix minor issues from PR#4
1 parent 04afa0f commit f7c7f72

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

evm/src/NttManager/ManagerBase.sol

+1
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ abstract contract ManagerBase is
354354
assert(this.mode() == mode);
355355
assert(this.chainId() == chainId);
356356
assert(this.endpoint() == endpoint);
357+
assert(this.executor() == executor);
357358
}
358359

359360
function _checkThresholdInvariants() internal view {

evm/src/NttManager/NttManager.sol

+2
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,8 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {
662662

663663
uint128 gasLimit = peerData.gasLimit;
664664
if (gasLimit == 0) {
665+
// The gas limit can only be zero when a contract has been migrated from an older version,
666+
// where the gasLimit was not defined in the manager peer struct and was not set during the upgrade.
665667
revert InvalidGasLimitZero(args.recipientChain);
666668
}
667669

0 commit comments

Comments
 (0)