Browse Source

Update 'examples/token.bas'

master
Captain 9 months ago
parent
commit
537bff17e2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      examples/token.bas

+ 2
- 2
examples/token.bas View File

@@ -20,7 +20,7 @@
20 RETURN 0
End Function
// This function is used to initialize parameters during install time
// This function is used to initialize parameters during install time
// InitializePrivate initializes a private SC
Function InitializePrivate() Uint64
10 STORE("owner", SIGNER()) // Store in DB ["owner"] = address
@@ -40,7 +40,7 @@
End Function
// Until the new owner claims ownership, existing owner remains owner
Function ClaimOwnership() Uint64
Function ClaimOwnership() Uint64
10 IF LOAD("tmpowner") == SIGNER() THEN GOTO 30
20 RETURN 1
30 STORE("owner",SIGNER()) // ownership claim successful


Loading…
Cancel
Save