From 336d0511c6571118e7d1acfc08a005c99f199454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Gonz=C3=A1lez?= Date: Fri, 22 Mar 2024 15:36:37 +0100 Subject: [PATCH] ref(erc20): remove unnecessary InvalidApprover error definition (#4) --- contracts/token/src/erc20/mod.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/contracts/token/src/erc20/mod.rs b/contracts/token/src/erc20/mod.rs index e993f98a..84a1b201 100644 --- a/contracts/token/src/erc20/mod.rs +++ b/contracts/token/src/erc20/mod.rs @@ -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. /// @@ -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),