Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

register on smart contract with nethereum #50

Open
alirezamoftakhar opened this issue Dec 30, 2018 · 0 comments
Open

register on smart contract with nethereum #50

alirezamoftakhar opened this issue Dec 30, 2018 · 0 comments

Comments

@alirezamoftakhar
Copy link

alirezamoftakhar commented Dec 30, 2018

Hi i want to send parameter with nethereum to save register on smart contract.

pragma solidity ^0.5.1;

contract registerCon {
    
    uint256 age;
    string firstName ;
    string lastName;


 
 function register1( uint256 _age ) public returns(bool)
    {
      age = _age ;
      return true;
    }
    function register2( string memory _firstName , string memory _lastName ) public returns(bool)
    {
     
     firstName = _firstName ;
     lastName = _lastName;
     return true;
    }
    function getrigester () public view returns(uint256 , string memory , string memory)
    {
       
        return ( age , firstName , lastName);
        
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants