g45t345rt / DERO-SC-Standards

6 stars 2 forks source link

t345.bas has invalid GOTO 130 statement in SetNFT #1

Open Alumn0 opened 12 months ago

Alumn0 commented 12 months ago

In line 70:

Function SetNFT(index Uint64, metadata String, soulBound Uint64, frozen Uint64) Uint64
10 IF LOAD("owner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 IF LOAD(nftKey(index, "frozen")) == 0 THEN GOTO 50
40 RETURN 1
50 IF soulBound <= 1 THEN GOTO 110
60 RETURN 1
70 IF frozen <= 1 THEN GOTO 130
80 RETURN 1
90 STORE(nftKey(index, "metadata"), metadata)
100 STORE(nftKey(index, "soulBound"), soulBound)
110 STORE(nftKey(index, "frozen"), frozen)
120 RETURN 0
End Function
g45t345rt commented 11 months ago

Yes, this contract is neither complete nor tested. I'm not sure if I will ever finish it or use it.