14 lines
335 B
Solidity
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];
|
||
|
}
|
||
|
}
|