tokenUri增加.png
This commit is contained in:
parent
1c85ff233a
commit
54892267fb
@ -27,7 +27,7 @@ abstract contract BEBase is ERC721, AccessControlEnumerable, ERC721Enumerable, O
|
||||
|
||||
string memory baseURI = _baseURI();
|
||||
uint256 tokenSub = tokenId % 1000;
|
||||
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenSub.toString())) : "";
|
||||
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenSub.toString(), '.png')) : "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -16,4 +16,9 @@ contract Migrations {
|
||||
function setCompleted(uint completed) external restricted {
|
||||
last_completed_migration = completed;
|
||||
}
|
||||
|
||||
function upgrade(address new_address) external restricted {
|
||||
Migrations upgraded = Migrations(new_address);
|
||||
upgraded.setCompleted(last_completed_migration);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user