Skip to main content
Setting a code is one of the actions that a smart contract can perform during the action phase. It can get into the out action list by: The set code action consists of a cell containing the new code of a smart contract. If there are several such actions in the action phase, the smart contract code, upon successful completion of the action phase, will be changed to the one specified in the last one. If the action phase fails, the code change will not be applied, even if the set code action was processed successfully. The only error that can happen when processing a set code action is that the action cell does not match the expected TL-B scheme.

Serialization

action_set_code#ad4de08e new_code:^Cell = OutAction;