Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String handling using memory keyword #21

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions contracts/Contract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ contract Contract {

function list1(
uint256 _nftID,
string _amenities,
// memory used to pass strings that won't be stored after function ends
string memory _amenities,
uint256 _sqfoot,
uint256 _bedno,
string _img,
string _descp,
string memory _img,
string memory _descp,
uint256 _purchasePrice,
uint256 _tokenID)public {
IERC721(nftaddress).transferFrom(seller, address(this), _tokenID);
Expand Down