|
Algorithm 4 Bid on a NFT |
-
1:
functionBidNFT(id string)
-
2:
▹ Calling Algorithm 2
-
3:
if token.NotForSale == true then
-
4:
return “Token not for sale”
-
5:
end if
-
6:
-
7:
if then
-
8:
-
9:
else
-
10:
return “There is already a bid on this token by token.Bid”
-
11:
end if
-
12:
-
13:
▹ Saving updated token
-
14:
end function
|