【发布时间】:2022-12-09 05:10:46
【问题描述】:
这是我的合同。
// SPDX-License-Identifier: MIT
pragma solidity >= 0.7.3;
contract terceiroTest {
// We pass and old String, a new string and when this event is
// broadcast everybody is able to see that the even happened.
// and see the strings exposed too.
event UpdatedMessages(string oldStr, string newStr);
string public message;
// When this contract is deployed we require an argument passed called initMessasge
constructor (string memory initMessage) {
message = initMessage;
}
function update(string memory newMessage) public {
string memory oldMsg = message;
message = newMessage;
emit UpdatedMessages(oldMsg, newMessage);
}
}
它给了我错误:
我试图找到关于此错误的任何描述,甚至更改了 solidity 的版本。我仍在研究智能合约,如果有人有或有同样的错误,我会很乐意启发我。谢谢。
【问题讨论】:
-
不要发布代码、数据、错误消息等的图像。- 将文本复制或键入问题。 How to Ask
标签: solidity smartcontracts hardhat etherscan