Skip to content

Conversation

@notJoon
Copy link
Member

@notJoon notJoon commented Sep 22, 2025

Description

Added error checks to functions that were missing error validation.

  • For the Approve case in swapInner, no changes were made as it has been replaced with the common.safeGRC20Approve function.
  • For the GetAddress function, added and used a MustGetAddress function to remove duplicate error checks.

Except for these two cases, error checks have been added according to the recommendations.

@notJoon notJoon requested a review from jinoosss September 22, 2025 03:37
Signed-off-by: Lee ByeongJun <lbj199874@gmail.com>
@sonarqubecloud
Copy link

@notJoon notJoon merged commit 83cb975 into gnoswap-labs:main Oct 14, 2025
82 of 84 checks passed
jinoosss pushed a commit that referenced this pull request Oct 15, 2025
* fix: error checks

* fix parameter mismatch

* fix missing error checks

* fix

* remove unnecessary codes (position)

* fix

---------

Signed-off-by: Lee ByeongJun <lbj199874@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants