所有者如何向已部署的智能合约添加功能
How Can a Owner Add a Function to Already Deployed Smart Contract
坦白说,我犯了一个愚蠢的错误。在多边形网络中,我部署了一个 NFT 智能合约。我忘记在我的智能合约中添加取款功能。我们可以将此功能添加到我已经部署的智能合约中吗?
您可以在这里看到智能合约代码:
https://polygonscan.com/address/0xeCd093eD38449d8d64bb015D97072BdcaA594832#code
很遗憾,你不能。
Upgrading smart contracts is not possible on EVM chains unless the contracts were designed for it。您可以在 Ethereum StackExchange 上阅读有关该主题的更多信息。
I also suggest you test you minimally unit tests contracts before deploying.
坦白说,我犯了一个愚蠢的错误。在多边形网络中,我部署了一个 NFT 智能合约。我忘记在我的智能合约中添加取款功能。我们可以将此功能添加到我已经部署的智能合约中吗?
您可以在这里看到智能合约代码: https://polygonscan.com/address/0xeCd093eD38449d8d64bb015D97072BdcaA594832#code
很遗憾,你不能。
Upgrading smart contracts is not possible on EVM chains unless the contracts were designed for it。您可以在 Ethereum StackExchange 上阅读有关该主题的更多信息。
I also suggest you test you minimally unit tests contracts before deploying.