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

Simplify address checks in receiveApproval function #405

Merged
merged 3 commits into from
May 8, 2024

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented May 8, 2024

We can check directly msg.sender agains stbtc address and skip checking
the token address, as it is expected that the function will be called
only by the stBTC contract, and the token argument is not used anywhere,
besides the validation.

nkuba added 3 commits May 8, 2024 15:20
We can check directly msg.sender agains stbtc address and skip checking
the token address, as it is expected that the function will be called
only by the stBTC contract, and the token argument is not used anywhere,
besides the validation.
@nkuba nkuba requested a review from dimpar May 8, 2024 13:28
@nkuba nkuba self-assigned this May 8, 2024
Copy link

netlify bot commented May 8, 2024

Deploy Preview for acre-dapp-testnet canceled.

Name Link
🔨 Latest commit 9b8d6aa
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/663b7de87377fa0008db9dee

@dimpar dimpar merged commit 3cbd753 into main May 8, 2024
25 checks passed
@dimpar dimpar deleted the receive-approval-improvement branch May 8, 2024 13:34
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