discourse/poc/contract/Feedback.sol

14 lines
335 B
Solidity
Raw Normal View History

2025-03-03 02:00:12 -05:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Feedback {
string[] public feedbackList;
function submitFeedback(string memory feedback) public {
feedbackList.push(feedback);
}
function getFeedback(uint index) public view returns (string memory) {
return feedbackList[index];
}
}