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

[nft-collection L-03] Absence of whenNotPaused Modifiers for Several Functions #1629

Open
wants to merge 2 commits into
base: fix/nft-collection-audit-L-02
Choose a base branch
from

Conversation

adjisb
Copy link
Contributor

@adjisb adjisb commented Jan 27, 2025

Description

https://internal-jira.atlassian.net/browse/GE-100

Audit

The NFTcollection contract will enter a paused state upon invocation of the pause function. However, several non-view functions, for example, the operatorPersonalize, transferFrom, safeTransferFrom, batchTransferFrom, and safeBatchTransferFrom functions, lack the whenNotPaused modifier and will remain operational even when the contract has been paused.

Consider adding the whenNotPaused modifier to all the non-view functions within the NFTcollection contract.

Fix

  • Added whenNotPaused to transfer operations
  • We don't pause ownerOnly operations because it gives us the power to fix issues. (TODO: decide if we want to pause those too)

@adjisb adjisb requested a review from a team as a code owner January 27, 2025 19:13
@adjisb adjisb changed the title fix: add whenNotPaused to trasfer operations [nft-collection L-03] add whenNotPaused to transfer operations Jan 27, 2025
@adjisb adjisb changed the title [nft-collection L-03] add whenNotPaused to transfer operations [nft-collection L-03] Absence of whenNotPaused Modifiers for Several Functions Jan 28, 2025
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-02 branch from 11f48e7 to 083bec5 Compare January 29, 2025 14:12
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-03 branch from eb8cd5b to 4f7bdac Compare January 29, 2025 14:12
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-02 branch from 083bec5 to cb9e6fd Compare January 29, 2025 14:36
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-03 branch from 4f7bdac to e9bd12f Compare January 29, 2025 14:36
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-02 branch from cb9e6fd to 35f536d Compare February 3, 2025 13:16
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-03 branch 2 times, most recently from a13891a to f573fca Compare February 3, 2025 13:19
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-02 branch from 35f536d to dfba957 Compare February 3, 2025 16:21
Andres Adjimann added 2 commits February 3, 2025 13:22
We don't pause ownerOnly operations because it gives us the power to fix issues.
TODO: decide if we want to pause those too.
@adjisb adjisb force-pushed the fix/nft-collection-audit-L-03 branch from f573fca to 7880589 Compare February 3, 2025 16:22
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