Unverified Commit 3296ca72 by Nicolás Venturo Committed by GitHub

Rearrange erc721metadata layout to mimic eth-pkg (#2098)

In https://github.com/OpenZeppelin/openzeppelin-contracts-ethereum-package/pull/76, we are rearranging the erc721metadata contract storage layout, so the new variable is added at the end. This commit applies the same change to the vanilla contracts repository, so migration from 2.5 to 3.0 is easier for users using the transpiler.
parent cb458f32
...@@ -12,12 +12,12 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata { ...@@ -12,12 +12,12 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
// Token symbol // Token symbol
string private _symbol; string private _symbol;
// Base URI
string private _baseURI;
// Optional mapping for token URIs // Optional mapping for token URIs
mapping(uint256 => string) private _tokenURIs; mapping(uint256 => string) private _tokenURIs;
// Base URI
string private _baseURI;
/* /*
* bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('name()')) == 0x06fdde03
* bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('symbol()')) == 0x95d89b41
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment