We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following the internal audit described here,
The following report has been written with few recommendations:
https://www.notion.so/massa-innoteam/FT-NFT-Contract-Audit-comments-0dd27b501ce44fcf9fbe131a7b6ebb8e?pvs=4#065acfb0b6bc4eba9e1a7070c8eb4636
as-pect.config.js
NFT.ts
NFT-internals.ts
npm audit
_increment
u64
_updateBalanceOf
_isTokenOwner
memory.compare
_setApprovalForAll
wrapper.spec.ts
assert
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Following the internal audit described here,
The following report has been written with few recommendations:
https://www.notion.so/massa-innoteam/FT-NFT-Contract-Audit-comments-0dd27b501ce44fcf9fbe131a7b6ebb8e?pvs=4#065acfb0b6bc4eba9e1a7070c8eb4636
Recommendations
Code Coverage and Testing
as-pect.config.js
.NFT.ts
andNFT-internals.ts
.npm audit
to the CI pipeline to regularly check for package vulnerabilities.Code Security and Best Practices
NFT-internals.ts
,_increment
: Check foru64
overflow.NFT-internals.ts
,_updateBalanceOf
: Check foru64
overflow and reset.NFT-internals.ts
,_isTokenOwner
: Revise the comment aboutmemory.compare
to clarify that the comparison is of byte contents, not pointers.NFT-internals.ts
,_setApprovalForAll
: Store boolean values instead of strings (e.g., "true").wrapper.spec.ts
: Useassert
to ensure that all return values are checked.Dependencies Update
npm audit
.The text was updated successfully, but these errors were encountered: