SHARE
TWEET

Untitled

a guest Jan 24th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity >=0.4.22 <0.6.0;
  2.  
  3. contract A {
  4.    
  5.     event eSet(string _a);
  6.    
  7.     string a;
  8.  
  9.     constructor() public {}
  10.    
  11.     function setA(string memory _a) public {
  12.         a = _a;
  13.         emit eSet(a);
  14.     }
  15.  
  16.     function getA() external view returns (string memory _a) {
  17.         return a;
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top