From 74c1e6b593f42469156469f3fe808ed4e48e96c2 Mon Sep 17 00:00:00 2001 From: Riad Elimemmedov Date: Tue, 19 Mar 2024 21:16:25 +0400 Subject: [PATCH] Added pet slug field to cart struct --- blockchain/contracts/PetAdoption.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blockchain/contracts/PetAdoption.sol b/blockchain/contracts/PetAdoption.sol index f338e70..199f68b 100644 --- a/blockchain/contracts/PetAdoption.sol +++ b/blockchain/contracts/PetAdoption.sol @@ -11,6 +11,7 @@ contract PetAdoption { struct Pet { uint256 id; + string slug; string name; string color; uint256 price; @@ -63,6 +64,7 @@ contract PetAdoption { //addToCart function addToCart( uint256 _petId, + string memory _petSlug, string memory _petName, string memory _petColor, uint256 _petPrice, @@ -70,6 +72,7 @@ contract PetAdoption { ) public { Pet memory newPet = Pet( _petId, + _petSlug, _petName, _petColor, _petPrice,