Skip to content

Commit

Permalink
chore: fix lint (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
npty and milapsheth authored Aug 22, 2023
1 parent c506fde commit 5ff1eb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
contracts/test
contracts/deploy
2 changes: 1 addition & 1 deletion contracts/InterchainProposalExecutor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
10 changes: 5 additions & 5 deletions contracts/InterchainProposalSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5ff1eb3

Please sign in to comment.