daily pastebin goal
54%
SHARE
TWEET

Untitled

a guest Dec 18th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pragma solidity ^0.4.20;
  2.  
  3. contract test {
  4.     struct data {
  5.         string s1;
  6.         uint ui1;
  7.     }
  8.     data d1;
  9.     function setData(string s1, uint ui1) public{
  10.         d1.s1 = s1;
  11.         d1.ui1 = ui1;
  12.     }
  13.     function getData() public view returns (string s1, uint ui1) {
  14.         s1 = d1.s1;
  15.         ui1 = d1.ui1;
  16.     }
  17. }
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