Skip to content

Commit 30ff557

Browse files
committed
refactor: update TxSigned event to use AuthType.AuthMode and remove SignMethod enum
1 parent cf6d29e commit 30ff557

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/core/IAuthenticator.sol

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
pragma solidity ^0.8.20;
33

44
import {
5+
AuthType,
56
MsgSignTx,
67
MsgSignTxResponse,
78
MsgExtSignTx,
@@ -10,14 +11,8 @@ import {
1011
QueryTxAuthStateResponse
1112
} from "../proto/cross/core/auth/Auth.sol";
1213

13-
enum SignMethod {
14-
LOCAL,
15-
// IBC, // IBC signing is not supported
16-
EXTENSION
17-
}
18-
1914
interface IAuthenticator {
20-
event TxSigned(address indexed signer, bytes32 indexed txId, SignMethod method);
15+
event TxSigned(address indexed signer, bytes32 indexed txId, AuthType.AuthMode method);
2116

2217
function signTx(MsgSignTx.Data calldata msg_) external returns (MsgSignTxResponse.Data memory);
2318

0 commit comments

Comments
 (0)