Skip to content

Commit

Permalink
evm: Fix minor issues from PR#4
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Dec 23, 2024
1 parent 04afa0f commit f7c7f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions evm/src/NttManager/ManagerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ abstract contract ManagerBase is
assert(this.mode() == mode);
assert(this.chainId() == chainId);
assert(this.endpoint() == endpoint);
assert(this.executor() == executor);
}

function _checkThresholdInvariants() internal view {
Expand Down
2 changes: 2 additions & 0 deletions evm/src/NttManager/NttManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ contract NttManager is INttManager, RateLimiter, ManagerBase {

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

Expand Down

0 comments on commit f7c7f72

Please sign in to comment.