Skip to content

Commit a9bb47a

Browse files
authored
Merge pull request #261 from 0xcert/sload-sstore
eip-2200
2 parents 342793a + 39f6855 commit a9bb47a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/contracts/tokens/nf-token-metadata.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ contract NFTokenMetadata is
9696
{
9797
super._burn(_tokenId);
9898

99-
if (bytes(idToUri[_tokenId]).length != 0)
100-
{
101-
delete idToUri[_tokenId];
102-
}
99+
delete idToUri[_tokenId];
103100
}
104101

105102
/**

src/contracts/tokens/nf-token.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,7 @@ contract NFToken is
452452
)
453453
private
454454
{
455-
if (idToApproval[_tokenId] != address(0))
456-
{
457-
delete idToApproval[_tokenId];
458-
}
455+
delete idToApproval[_tokenId];
459456
}
460457

461458
}

0 commit comments

Comments
 (0)