codedamn

Issue with self destruct function

Created by Kshitij about a year ago

0

No description provided

1 Comment

    1

    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?

    @amansadhwa0874

    Aman Sadhwani

    @amansadhwa0874

Your comment