You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.
if (id == 0) {
id = nftContract.create(_toAddress, _amount, "", _data);
optionToTokenID[optionId] = id;
} else {
nftContract.mint(_toAddress, id, _amount, _data);
}
If the nftContract itself supports callback hooks (like MyCollectible.sol), there is a reentrancy which could allow create to be called twice with the same optionId
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
opensea-erc1155/contracts/MyFactory.sol
Line 94 in 59d2e0c
Calling
mint(uint256 _optionId, address _toAddress, uint256 _amount, bytes calldata _data)
calls the internalWhich ends up running
If the nftContract itself supports callback hooks (like MyCollectible.sol), there is a reentrancy which could allow
create
to be called twice with the sameoptionId
The text was updated successfully, but these errors were encountered: