Skip to content

Commit 670b92b

Browse files
committed
cleanup
1 parent 8760d81 commit 670b92b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SovaBTC.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
5050
error TransactionAlreadyUsed();
5151
error PendingDepositExists();
5252
error PendingWithdrawalExists();
53+
error PendingUserWithdrawalRequestExists();
5354
error UnauthorizedWithdrawSigner();
5455
error SignerAlreadyExists();
5556
error SignerDoesNotExist();
@@ -226,7 +227,7 @@ contract SovaBTC is ISovaBTC, UBTC20, Ownable, ReentrancyGuard {
226227

227228
// Check that a withdraw request exists
228229
if (request.amount == 0) {
229-
revert PendingTransactionExists();
230+
revert PendingUserWithdrawalRequestExists();
230231
}
231232

232233
uint256 totalRequired = request.amount + uint256(request.btcGasLimit) + uint256(request.operatorFee);

0 commit comments

Comments
 (0)