Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Is there a difference between `archive someContract` and `exercise someContract Archive`?Forum ↗

Is there a difference between `archive someContract` and `exercise someContract Archive`?

App Development3 posts454 views9 likesLast activity Dec 2020
SH
ShaulOP
Dec 2020

I can archive a contract either by calling archive someContract or by exercise someContract Archive

Is this syntactic sugar or is there a material difference between the two?
If there is a difference, when should I use each?

CO
cocreature
Dec 2020

That’s syntactic sugar, the two are completely identical.

BE
bernhard
Dec 2020

The two are exactly the same. archive cid is just a shorthand for exercise cid Archive

← Back to Discussions