【问题标题】:Remix IDE - Issue with functions when deploying smart contractRemix IDE - 部署智能合约时出现功能问题
【发布时间】:2021-10-27 13:50:24
【问题描述】:

我试图在 Remix IDE 上部署以下智能合约: Remix deployment, can't share as an image yet

如您所见,Remix 不允许我处理已部署的函数。我唯一能做的就是通过 calldata 进行交互。我检查了类似这样的其他链接:Remix IDE does not show the deployed functions under the deployed contracts option 但网络浏览器没有问题。我已经使用 Chrome 和 Brave 部署了它,但是没有用。任何人都可以给我一个提示吗?我真的很感激。

亲切的问候!

【问题讨论】:

    标签: blockchain ethereum solidity smartcontracts remix


    【解决方案1】:

    这是因为您将每个函数和变量都设为internal。内部功能仅限于合同级别,这就是为什么您在部署后看不到它们的原因。在部署后要调用的函数上将internal 替换为external

    【讨论】:

    • 非常感谢泰摩尔!!就是这样。
    • 或者他可以把internal换成public
    猜你喜欢
    • 2021-11-15
    • 2020-01-24
    • 1970-01-01
    • 2021-09-10
    • 2021-07-19
    • 2022-08-05
    • 2018-09-23
    • 2022-12-06
    • 1970-01-01
    相关资源
    最近更新 更多