Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(erc20): remove unnecessary error definition #4

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading