Odak modu

Transition to Web3 - Course 3 | How Smart Contracts Work

Function: buyBook When someone sends me money:

1. If the money is equal or above the price of the book ($10)

i. Send the writer $10

ii. Get the sender's account address

iii. Send that sender's address the digital copy of the book

Contract storage

bookBuyers = [Alice]

booksSent=1

left-disk

Yazılım Kariyerinde İlerlemeni Hızlandıracak Programlar

Patika+ programlarımız ile 4-8 aylık yoğun yazılım kamplarına katıl, temel bilgilerden başlayarak kapsamlı bilgiler edin, yazılım kariyerine başla!

right-cube

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!