Skip to content

Conversation

@fly-1-1
Copy link
Contributor

@fly-1-1 fly-1-1 commented Nov 20, 2025

What type of PR is this (这是什么类型的PR)

  • Typo(勘误)
  • BUG(程序错误)
  • Improvement(提升)
  • Feature(新特性)

Which issue(s) this PR fixes(Optional) (这个PR 修复了什么问题 (可选择))

如果授权100,空投数量为100,那么会失败。

  • resolve: #

What this PR does / why we need it (这个PR 做了什么/ 我们为什么需要这个PR)

修复了代币授权数量的检查

@XdpCs XdpCs requested a review from Copilot November 20, 2025 07:26
Copilot finished reviewing on behalf of XdpCs November 20, 2025 07:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the Airdrop contract's token allowance validation logic that would incorrectly reject airdrops when the approved token amount exactly equals the required airdrop amount.

  • Changed the allowance check from strict greater-than (>) to greater-than-or-equal (>=)
  • Updated the Chinese comment to reflect the corrected validation logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@XdpCs XdpCs merged commit bea5409 into AmazingAng:main Nov 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants