Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update doc - add "if succeeded"
Browse files Browse the repository at this point in the history
  • Loading branch information
pepyakin authored and athei committed Jun 23, 2020
1 parent 92b9706 commit d34fad6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions frame/contracts/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ pub trait Ext {

/// Transfer all funds to `beneficiary` and delete the contract.
///
/// Since this function removes the self contract eagerly, no further actions should be performed
/// on this `Ext` instance. This function will fail if the same contract is present on the contract
/// Since this function removes the self contract eagerly, if succeeded, no further actions should
/// be performed on this `Ext` instance.
///
/// This function will fail if the same contract is present on the contract
/// call stack.
fn terminate(
&mut self,
Expand All @@ -153,9 +155,11 @@ pub trait Ext {

/// Restores the given destination contract sacrificing the current one.
///
/// Since this function removes the self contract eagerly, no further actions should be performed
/// on this `Ext` instance. This function will fail if the same contract is present on the contract
/// call stack.
/// Since this function removes the self contract eagerly, if succeeded, no further actions should
/// be performed on this `Ext` instance.
///
/// This function will fail if the same contract is present
/// on the contract call stack.
fn restore_to(
&mut self,
dest: AccountIdOf<Self::T>,
Expand Down

0 comments on commit d34fad6

Please sign in to comment.