hamzajaved

Remix Solidity

Oct 18th, 2021
592
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.4.17;
  3.  
  4. contract Inbox{
  5.     string public message;
  6.    
  7.     constructor(string initialMessage) public {
  8.         message = initialMessage;
  9.     }
  10.    
  11.     function setMessage(string newMessage) public {
  12.         message = newMessage;
  13.     }
  14.    
  15.     function getMessage() public view returns (string){
  16.         return message;
  17.     }
  18. }
RAW Paste Data