Skip to content

Commit

Permalink
ref(erc20): remove unnecessary InvalidApprover error definition (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfertel authored Mar 22, 2024
1 parent 7cb587a commit 336d051
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions contracts/token/src/erc20/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ sol! {
/// * `needed` - Minimum amount required to perform a transfer.
#[derive(Debug)]
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/// Indicates a failure with the `approver` of a token to be approved. Used
/// in approvals.
///
/// * `approver` - Address initiating an approval operation.
#[derive(Debug)]
error ERC20InvalidApprover(address approver);
/// Indicates a failure with the `spender` to be approved. Used in
/// approvals.
///
Expand All @@ -82,9 +76,6 @@ pub enum Error {
/// Indicates a failure with the `spender`’s `allowance`. Used in
/// transfers.
InsufficientAllowance(ERC20InsufficientAllowance),
/// Indicates a failure with the `approver` of a token to be approved. Used
/// in approvals.
InvalidApprover(ERC20InvalidApprover),
/// Indicates a failure with the `spender` to be approved. Used in
/// approvals.
InvalidSpender(ERC20InvalidSpender),
Expand Down

0 comments on commit 336d051

Please sign in to comment.