Skip to content

Commit cc98902

Browse files
committed
fix: update lint:sol script to enforce no warnings and improve code quality
1 parent f784749 commit cc98902

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"postinstall": "husky && forge build",
88
"clean": "rm -rf build",
99
"test": "forge test -vvv",
10-
"lint:sol": "solhint -f table 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'",
10+
"lint:sol": "solhint -f table --max-warnings 0 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'",
1111
"fmt:sol": "forge fmt",
1212
"coverage:sol": "forge coverage --report lcov"
1313
},

src/core/IInitiator.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.20;
44
import {MsgInitiateTx, MsgInitiateTxResponse, QuerySelfXCCResponse} from "../proto/cross/core/initiator/Initiator.sol";
55

66
interface IInitiator {
7-
event TxInitiated(bytes txId, address proposer);
7+
event TxInitiated(bytes txId, address indexed proposer);
88

99
function initiateTx(MsgInitiateTx.Data calldata msg_) external returns (MsgInitiateTxResponse.Data memory resp);
1010

0 commit comments

Comments
 (0)