Skip to content

Commit

Permalink
fixup! fixup! fixup! [libra-framework] Refactor writeset prologue and…
Browse files Browse the repository at this point in the history
… epilogue
  • Loading branch information
Runtian Zhou committed Sep 16, 2020
1 parent 984bbcb commit 63cc29b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions language/stdlib/modules/LibraAccount.move
Expand Up @@ -1173,6 +1173,8 @@ module LibraAccount {
}

spec fun writeset_prologue {
include CoreAddresses::AbortsIfNotLibraRoot{account: sender};

/// Must abort if the signer does not have the LibraRoot role [B18].
aborts_if !Roles::spec_has_libra_root_role_addr(Signer::address_of(sender));
}
Expand Down
5 changes: 5 additions & 0 deletions language/stdlib/modules/doc/LibraAccount.md
Expand Up @@ -3348,6 +3348,11 @@ Can only rotate the authentication_key of cap.account_address [B26].




<pre><code><b>include</b> <a href="CoreAddresses.md#0x1_CoreAddresses_AbortsIfNotLibraRoot">CoreAddresses::AbortsIfNotLibraRoot</a>{account: sender};
</code></pre>


Must abort if the signer does not have the LibraRoot role [B18].


Expand Down

0 comments on commit 63cc29b

Please sign in to comment.