mirror of
https://github.com/th30d4y/OpenLearnX.git
synced 2026-05-26 19:26:33 +00:00
@@ -0,0 +1,12 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
|
||||
pragma solidity ^0.8.0;
|
||||
|
||||
contract Payment{
|
||||
event message(address indexed from ,string message ,address to,string timestamp);
|
||||
function sendMessage(address _to,string memory _message,string memory time) public {
|
||||
|
||||
emit message(msg.sender,_message,_to,time);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user