diff --git a/.solhintignore b/.solhintignore index 896c253..31cdccd 100644 --- a/.solhintignore +++ b/.solhintignore @@ -1 +1,2 @@ contracts/test +contracts/deploy diff --git a/contracts/InterchainProposalExecutor.sol b/contracts/InterchainProposalExecutor.sol index c8bf461..833020f 100644 --- a/contracts/InterchainProposalExecutor.sol +++ b/contracts/InterchainProposalExecutor.sol @@ -72,7 +72,7 @@ contract InterchainProposalExecutor is IInterchainProposalExecutor, AxelarExecut * @param calls The calls to execute. */ function _executeProposal(InterchainCalls.Call[] memory calls) internal { - uint length = calls.length; + uint256 length = calls.length; for (uint256 i = 0; i < length; i++) { InterchainCalls.Call memory call = calls[i]; diff --git a/contracts/InterchainProposalSender.sol b/contracts/InterchainProposalSender.sol index 8515d8e..e5c6bdd 100644 --- a/contracts/InterchainProposalSender.sol +++ b/contracts/InterchainProposalSender.sol @@ -62,9 +62,9 @@ contract InterchainProposalSender is IInterchainProposalSender { // revert if the sum of given fees are not equal to the msg.value revertIfInvalidFee(interchainCalls); - uint length = interchainCalls.length; + uint256 length = interchainCalls.length; - for (uint i = 0; i < length; ) { + for (uint256 i = 0; i < length; ) { _sendProposal(interchainCalls[i]); unchecked { ++i; @@ -106,10 +106,10 @@ contract InterchainProposalSender is IInterchainProposalSender { } function revertIfInvalidFee(InterchainCalls.InterchainCall[] calldata interchainCalls) private { - uint totalGas = 0; - uint length = interchainCalls.length; + uint256 totalGas = 0; + uint256 length = interchainCalls.length; - for (uint i = 0; i < length; ) { + for (uint256 i = 0; i < length; ) { totalGas += interchainCalls[i].gas; unchecked { ++i;