OnUpdate
@algorandfoundation/algokit-utils / types/app / OnUpdate
types/app.OnUpdate
What action to perform when deploying an app and an update is detected in the TEAL code
Table of contents
Section titled “Table of contents”Enumeration Members
Section titled “Enumeration Members”Enumeration Members
Section titled “Enumeration Members”AppendApp
Section titled “AppendApp”• AppendApp = 3
Create a new app
Defined in
Section titled “Defined in”• Fail = 0
Fail the deployment
Defined in
Section titled “Defined in”ReplaceApp
Section titled “ReplaceApp”• ReplaceApp = 2
Delete the app and create a new one in its place
Defined in
Section titled “Defined in”UpdateApp
Section titled “UpdateApp”• UpdateApp = 1
Update the app