Issue with self destruct function

Created by Kshitij about a year ago


No description provided

1 Comment


    If the product was not present in products array how did the buyProduct was executed ?we are already checking if the buyer is sending correct price in order to buy the product how "require(products[_productId-1].price==msg.value,"Please pay exacy price");" this statement get's executed where products array is empty?


    Aman Sadhwani


Your comment