SHARE
TWEET

AddUser

a guest Mar 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity ^0.4.25;
  2.  
  3. contract AddUser {
  4.     struct User {
  5.         string username;
  6.         string address;
  7.     }
  8.    
  9.     Users[] public users;
  10.    
  11.     function _createUser(string _username, string _addr) {
  12.         users.push(User(_username, _addr);
  13.         // I don't think an event for creating users is needed...?
  14.     }
  15. }
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