SC CODE: // Dero Knowledge Vault Patch Contract
Function Initialize() Uint64
10 STORE("owner", SIGNER())
20 STORE("styles.css", "")
30 STORE("scripts.js", "")
40 RETURN 0
End Function
Function UpdateCSS(scid String) Uint64
10 IF SIGNER() != LOAD("owner") THEN GOTO 30
20 STORE("styles.css", scid)
30 RETURN 0
End Function
Function UpdateJS(scid String) Uint64
10 IF SIGNER() != LOAD("owner") THEN GOTO 30
20 STORE("scripts.js", scid)
30 RETURN 0
End Function
|
| SC Arguments: [Name:SC_ACTION Type:uint64 Value:'1' Name:SC_CODE Type:string Value:'// Dero Knowledge Vault Patch Contract
Function Initialize() Uint64
10 STORE("owner", SIGNER())
20 STORE("styles.css", "")
30 STORE("scripts.js", "")
40 RETURN 0
End Function
Function UpdateCSS(scid String) Uint64
10 IF SIGNER() != LOAD("owner") THEN GOTO 30
20 STORE("styles.css", scid)
30 RETURN 0
End Function
Function UpdateJS(scid String) Uint64
10 IF SIGNER() != LOAD("owner") THEN GOTO 30
20 STORE("scripts.js", scid)
30 RETURN 0
End Function
'] |