Skip to content

Commit

Permalink
Added pet slug field to cart struct
Browse files Browse the repository at this point in the history
  • Loading branch information
riadelimemmedov committed Mar 19, 2024
1 parent b29c573 commit 74c1e6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blockchain/contracts/PetAdoption.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ contract PetAdoption {

struct Pet {
uint256 id;
string slug;
string name;
string color;
uint256 price;
Expand Down Expand Up @@ -63,13 +64,15 @@ contract PetAdoption {
//addToCart
function addToCart(
uint256 _petId,
string memory _petSlug,
string memory _petName,
string memory _petColor,
uint256 _petPrice,
string memory _petPhoto
) public {
Pet memory newPet = Pet(
_petId,
_petSlug,
_petName,
_petColor,
_petPrice,
Expand Down

0 comments on commit 74c1e6b

Please sign in to comment.