@@ -418,6 +418,7 @@ the SignerCapability.
418418<b >include</b > <a href =" aptos_account.md#0x1_aptos_account_GuidAbortsIf " >aptos_account::GuidAbortsIf</a >< ; AptosCoin> ; {<b >to</b >: resource_addr};
419419<b >include</b > <a href =" resource_account.md#0x1_resource_account_RotateAccountAuthenticationKeyAndStoreCapabilityAbortsIfWithoutAccountLimit " >RotateAccountAuthenticationKeyAndStoreCapabilityAbortsIfWithoutAccountLimit</a >;
420420<b >aborts_if</b > <a href =" coin.md#0x1_coin_is_account_registered " >coin::is_account_registered</a >< ; AptosCoin> ; (resource_addr) && coin_store_resource.frozen;
421+ <b >ensures</b > <b >exists</b >< ; aptos_framework::coin::CoinStore< ; AptosCoin> ;> ; (resource_addr);
421422</code ></pre >
422423
423424
@@ -455,6 +456,9 @@ the SignerCapability.
455456
456457<pre ><code ><b >let</b > resource_addr = <a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer_address_of " >signer::address_of</a >(resource);
457458<b >include</b > <a href =" resource_account.md#0x1_resource_account_RotateAccountAuthenticationKeyAndStoreCapabilityAbortsIf " >RotateAccountAuthenticationKeyAndStoreCapabilityAbortsIf</a >;
459+ <b >ensures</b > <b >exists</b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (<a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer_address_of " >signer::address_of</a >(origin));
460+ <b >ensures</b > <a href =" ../../aptos-stdlib/../move-stdlib/doc/vector.md#0x1_vector_length " >vector::length</a >(optional_auth_key) != 0 ==> ;
461+ <b >global</b >< ; aptos_framework::account::Account> ; (resource_addr).authentication_key == optional_auth_key;
458462</code ></pre >
459463
460464
@@ -516,9 +520,11 @@ the SignerCapability.
516520
517521<pre ><code ><b >aborts_if</b > !<b >exists</b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr);
518522<b >let</b > resource_addr = <a href =" ../../aptos-stdlib/../move-stdlib/doc/signer.md#0x1_signer_address_of " >signer::address_of</a >(resource);
519- <b >let</b > container = <b >borrow_global_mut </b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr);
523+ <b >let</b > container = <b >global </b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr);
520524<b >aborts_if</b > !<a href =" ../../aptos-stdlib/doc/simple_map.md#0x1_simple_map_spec_contains_key " >simple_map::spec_contains_key</a >(container.store, resource_addr);
521525<b >aborts_if</b > !<b >exists</b >< ; <a href =" account.md#0x1_account_Account " >account::Account</a >> ; (resource_addr);
526+ <b >ensures</b > <a href =" ../../aptos-stdlib/doc/simple_map.md#0x1_simple_map_spec_contains_key " >simple_map::spec_contains_key</a >(<b >old</b >(<b >global</b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr)).store, resource_addr) &&
527+ <a href =" ../../aptos-stdlib/doc/simple_map.md#0x1_simple_map_spec_len " >simple_map::spec_len</a >(<b >old</b >(<b >global</b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr)).store) == 1 ==> ; !<b >exists</b >< ; <a href =" resource_account.md#0x1_resource_account_Container " >Container</a >> ; (source_addr);
522528</code ></pre >
523529
524530
0 commit comments