discourse/poc/contract/Feedback.sol
Justin Carper 2ac5bd1b89 tiny poc
2025-03-03 02:00:12 -05:00

14 lines
335 B
Solidity

// 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];
}
}