When does the function contractURI() take effect in a OpenSea NFT contract?
function contractURI() public view returns (string memory) {
return "https://metadata-url.com/my-metadata";
}
Does it only take affect once the first time a NFT contract is loaded in Opensea? Or is it possible to make the ContractURI changeable to change the contract metadata after deployment? I tried to change it after deployment with
function setContractURI(string memory _contractURI) public onlyOwner {
contractURI = string(
abi.encodePacked(_contractURI, contractMetadataFilename)
);
}
But in Opensea did not change anything after I set a new ContractURI