File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ interface IRoninGatewayV2 is MappedTokenConsumer {
131
131
address _voter
132
132
) external view returns (bool );
133
133
134
+ /**
135
+ * @dev Returns whether the mainchain withdrew is casted by the voter.
136
+ */
137
+ function mainchainWithdrewVoted (uint256 _withdrawalId , address _voter ) external view returns (bool );
138
+
134
139
/**
135
140
* @dev Returns whether the withdrawal is done on mainchain.
136
141
*/
Original file line number Diff line number Diff line change @@ -252,6 +252,13 @@ contract RoninGatewayV2 is
252
252
return _voted (depositVote[_chainId][_depositId], _voter);
253
253
}
254
254
255
+ /**
256
+ * @dev {IRoninGatewayV2-mainchainWithdrewVoted}.
257
+ */
258
+ function mainchainWithdrewVoted (uint256 _withdrawalId , address _voter ) external view returns (bool ) {
259
+ return _voted (mainchainWithdrewVote[_withdrawalId], _voter);
260
+ }
261
+
255
262
/**
256
263
* @dev {IRoninGatewayV2-mainchainWithdrew}.
257
264
*/
You can’t perform that action at this time.
0 commit comments