Skip to content

Commit

Permalink
writable
Browse files Browse the repository at this point in the history
  • Loading branch information
MahithChigurupati committed Jan 3, 2023
1 parent 349fb36 commit 601a16b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion Test DAPP/test
Submodule test deleted from 16acd8
18 changes: 18 additions & 0 deletions readABI.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

contract readable{

uint public age = 25;

string public name = "Mahith";

function incrementAge() public view returns(uint){
return age+1;
}

function getName() public view returns(string memory){
return string.concat(name,"!");
}
}
26 changes: 26 additions & 0 deletions write.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

contract writable{

uint public age = 25;

string public name = "Mahith";

function incrementAge() public view returns(uint){
return age+1;
}

function getName() public view returns(string memory){
return string.concat(name,"!");
}

function changeAge(uint newAge) public {
age = newAge;
}

function changeName(string memory newName) public {
name = newName;
}
}

0 comments on commit 601a16b

Please sign in to comment.